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

#473 fix for 'seek of closed file' Error #517

Closed agrelle closed 1 year ago

agrelle commented 3 years ago

need to change the order here, first populate "self.file", then seek to start of file handle, and then "self.storage.save" (which will result in a closed file handle, from which we can no longer seek nor read)

vstoykov commented 3 years ago

Thank you for your contribution!

Can I ask if you can add a test that will fail if the fix is not applied? Thank you.

julianwachholz commented 2 years ago

I saw a recent new update for this package but unfortunately this didn't make the cut? :(