Aaron Cooper
  1. Uncaught Exception InvalidArgumentException: "Combined file /_resources/themes/site/css/libs/animate.css does not exist" at /home/site/subdomains/ss4/public_html/vendor/silverstripe/framework/src/View/Requirements_Backend.php line 1444
Aaron Cooper

Has anyone here seen a site collapse because it can't find a CSS file?

Aaron Cooper

If you're using SS image functions like $Image.Fit(300,300) then yeah, you'll end up with a resampled version of the source image. You might be better off with straight GD PHP code if you want to manipulate the source files like that.

steph

Thanks for that, I’ll have a bit more of a deeper dive into just plain PHP GD stuff :)

muskie9

@steph one thing you can implement to help reduce the large image sizes on upload is https://github.com/axllent/silverstripe-scaled-uploads

we implement on each project and seems to help quite a bit... not sure it will help resolve the existing issue, but for newly uploaded images it will help greatly

Show 1 attachment(s)
GitHub  
axllent/silverstripe-scaled-uploads

Automatically scale down, auto-rotate & compress uploaded images in SilverStripe - axllent/silverstripe-scaled-uploads

Hide attachment content
steph

Ah cool, that might be helpful for keeping things tidier going forward, thanks for the link! Also the source code a good reference for resizing current images :)

Aaron Cooper

Yeah probably. I'm just wondering if the bottleneck is just in the DB call for the records or something SS does with the file system on load.

Aaron Cooper

Deleting them from the file system, or from the DB too?