matthewwithanm / django-imagekit

Automated image processing for Django. Currently v4.0
http://django-imagekit.rtfd.org/
BSD 3-Clause "New" or "Revised" License
2.26k stars 276 forks source link

Generate on save using django-S3-storage and ImageSpecField #474

Closed amorino closed 5 years ago

amorino commented 5 years ago

I'm using django-s3-storage and ImageSpecField, the cached image works fine when I visit the template where the image will be shown. But it is a problem if I upload a lot of images because the cached images generate the thumbnails when I request them on template (and this causes memory consumption) instead of generating them when I upload them so I can have more control of the timing of memory consumption.

vstoykov commented 5 years ago

You can read more about this in the documentation. https://django-imagekit.readthedocs.io/en/latest/caching.html#pre-generating-images