Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[image-optimize] Very resource intensive on first run with lots of images #468

Open
danjames68 opened this issue Dec 25, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request image-optimize Image Optimize plugin

Comments

@danjames68
Copy link

I installed this plugin for the 'invitationtotuscany.com' website which has around 7000 images and it crashed the server. The server is a shared Linux account with Kualo, and has 3GB of physical memory.

@danjames68 danjames68 added the image-optimize Image Optimize plugin label Dec 25, 2024
@danjames68
Copy link
Author

Currently the 'image-optimize' panel won't open and the admin has slowed right down.

@danjames68
Copy link
Author

I guessed the plugin was choking on the number of images so I removed some folders via the "ignore paths" and now it's working fine. I think it needs some kind of pagination or chunking so that the script doesn't have to deal with so many images in one go.

@rhukster
Copy link
Member

rhukster commented Jan 6, 2025

There is definitely some room for improvement to batch or even process-in-the-background to ensure this kind of large scale process is handled better. Grav is typically used for smaller sites, and therefore this issue hasn't come up much. It's defnitely on my radar to improve in an upcoming version however. As I did run into some similar issues in my large-scale tests of the plugin.

@rhukster rhukster added the enhancement New feature or request label Jan 6, 2025
@danjames68
Copy link
Author

I try to optimise my photos before I upload them but it's useful to run them through TinyPNG to get a little bit of extra compression. My site is very image heavy so it's a good bench test for the plugin. I'm guessing a structured way of doing what I'm doing manually, ie chunking the load by folders, with a dropdown to pick which folder to tackle.

No urgency, and I'm still loving GRAV and very appreciative of these paid plugins, they're working very well for me.

@danjames68
Copy link
Author

Sorry, didn't mean to close.

@danjames68 danjames68 reopened this Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request image-optimize Image Optimize plugin
Projects
None yet
Development

No branches or pull requests

2 participants