Closed chemeng closed 1 year ago
In case anyone else is running into this issue, I was able to get around this by using a fork of the pilkit
package.
In my requirements.in
..
django-imagekit
git+https://github.com/sereema/pilkit
That added the correct library to my requirements.txt
..
pilkit @ git+https://github.com/sereema/pilkit
# via
# -r requirements.in
# django-imagekit
The only funny thing I had to do was to uninstall (on my local) and reinstall. I wasn't using this library extensively or anything, just making 1 thumbnail. YMMW.
Hi @vnagendra. I’m the "maintainer" of sereema/pilkit. For your information, this is a temporary fork until upstream fix the issue. You should not rely on it :)
Noted. There just wasn’t anything that had small changes like this. I’ll keep any eye out for upstream fix and then change to it when fixed
The new release of pilkit is uploaded to PyPi that adds compatibility with Pillow 10. You can update your dependencies and it will start working.
Installing the latest version of Pillow 10.0.0 breaks part of the resizing code:
reference: https://pillow.readthedocs.io/en/stable/releasenotes/10.0.0.html#constants