respondcreate / django-versatileimagefield

A drop-in replacement for django's ImageField that provides a flexible, intuitive and easily-extensible interface for quickly creating new images from the one assigned to the field.
http://django-versatileimagefield.readthedocs.io/
MIT License
530 stars 90 forks source link

Use instance for warm when it exists #171

Closed Calzzetta closed 3 years ago

Calzzetta commented 4 years ago

If I try to warm a image from a instance before save, I was getting the old version of the file and was not able to handle an error or create a new image.

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.002%) to 99.779% when pulling 8d19e1282ae4b1581779655b16a03d0eced57dbe on Calzzetta:master into bd6a1c7cd412ea66532310550bfa169492ee198d on respondcreate:master.

respondcreate commented 3 years ago

Hey @Calzzetta !

If I try to warm a image from a instance before save, I was getting the old version of the file and was not able to handle an error or create a new image

Creating images only from the data currently saved to a VersatileImageField instance is by design. Can you explain your thinking for wanting this kind of behavior?