I’m doing a little project for a charity and they’re using pretty large high res images, like really large, some are as large as 11 MB. The error below is from an image which is 8MB large.
Now, I’ve been using the focus plugin to handle these images, but if their size is going to lead to issues for the site is is recommended I maybe implement an actual cropper to reduce file sizes?
I’ve also noticed that speed’s been effected quite badly by loading images anyway, so I need to do something on that front. If someone has dealt with this before please let me know what the best course of action is thank you!
Both removing and reducing the file size (by a manual crop) doesn’t error. This has happened a few times.
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 22464 bytes) in
C:\xampp\htdocs\Projects\1-Kirby\Project-Ladder\Ladder-V0.15\kirby\toolkit\vendors\abeautifulsite\SimpleImage.php on line 300
It’s looking like that’s the best course of action right now.
In order to get the site live I’ll crop the large images down, but if this is going to cause an error every time then I need a better solution because I don’t know who’s going to upload an image a year from now.
I can’t rely on people doing the right thing. Maybe I could add some rules/checks in. Image files 3-4 MB and smaller, or resolution restrictions? With maybe a suggestion of cropping the image and then trying to upload again.