-
Notifications
You must be signed in to change notification settings - Fork 1
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
Disable image preset generation on upload? #804
Comments
Would be interesting for me too. We had a first test of our new system with a bigger group of our future editors. When they started to write articles and uploaded images, the system became slower and slower and finally stopped working/responding. I found out, that the reason was the calculation of all the different image presets.... So: Yes please! |
@klickreflex @Alpenverein This is already implemented in statamic/cms#6040, where you'll be able to |
@jesseleite This is great news, thanks 🙏 |
@klickreflex It would go on your asset container yaml file. There'll also be control panel UI for this in the asset container's settings... |
Oh nice, thanks for explaining @jesseleite |
Co-authored-by: StyleCI Bot <bot@styleci.io> Co-authored-by: Jason Varga <jason@pixelfear.com> Closes statamic/ideas#485 Closes statamic/ideas#804
Statamic always generates all image presets defined in
assets.image_manipulation.presets
on upload.This is nice if all your images are required in any preset available, but it can quickly blow up disk space when dealing with lots of images in many different formats, where. not every image is required in every format/preset.
I usually have a bunch of image presets that are used in some components, but many other components have custom glide settings and are only ever displayed in this variant.
Another scenario might be using
preset 1
only incomponent A
, andpreset 2
only incomponent B
. Sopreset 1
is never needed for an image used incomponent B
andpreset 2
is never needed for an image used incomponent A
, yet all defined variants are generated and stored on disk forever (or untilplease glide:clear
is run).It would be cool if we could just disable the automatic generation of presets upon upload with a config option. (
SAVE_CACHED_IMAGES
has no effect on this behavior).The text was updated successfully, but these errors were encountered: