You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The file is already open in the streamit example which is why they just use PIL. For easy-thumbnails, I think we'll need to use one of the suggested replacements found in the deprecation table, or 'vendor' the imghdr module into the code base (licenses have to allow this of course).
If we use one of the suggested libraries, care needs to be taken to ensure it produces the same result. e.g. 'jpeg' for Jpegs and not 'jpg', 'JPEG', 'JPG', etc.
Python 3.13 is out and this issue are preventing me from upgrading. Is it time to migrate to another package or can we get a decision how to move forward with fixing this issue?
easy-thumbnails==2.8.5
python3.11
easy_thumbnails/optimize/post_processor.py:3:
DeprecationWarning: 'imghdr' is deprecated and slated for removal in Python 3.13
from imghdr import what as determinetype
Here is how https://github.com/streamlit/streamlit migrated from imghdr to using Pillow functionality: streamlit/streamlit@3d5dd61
The text was updated successfully, but these errors were encountered: