We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
> python -Wd Python 3.7.0 (default, Jul 15 2018, 10:44:58) [GCC 8.1.1 20180531] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from PIL import Image >>> with Image.open('tshirt.webp') as img: ... img.save('tshirt.png', 'PNG') ... /home/pajadam/.venv/hype/lib/python3.7/site-packages/PIL/WebPImagePlugin.py:156: ResourceWarning: unclosed file <_io.BufferedReader name='tshirt.webp'> self.fp = BytesIO(data) >>>
No warnings, especially while using context manager.
Following warning occurs:
/home/pajadam/.venv/hype/lib/python3.7/site-packages/PIL/WebPImagePlugin.py:156: ResourceWarning: unclosed file <_io.BufferedReader name='tshirt.webp'> self.fp = BytesIO(data)
Pillow==5.2
Python 3.7
Minimal example:
from PIL import Image with Image.open('tshirt.webp') as img: img.save('tshirt.png', 'PNG')
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. This can be replicated using transparent.webp from the Pillow test images.
I have created PR #3341
Sorry, something went wrong.
Re-opening as #3341 caused an error and was reverted in #3415.
I have created PR #3418 as a revised solution to this.
No branches or pull requests
What did you do?
What did you expect to happen?
No warnings, especially while using context manager.
What actually happened?
Following warning occurs:
What versions of Pillow and Python are you using?
Pillow==5.2
Python 3.7
Minimal example:
The text was updated successfully, but these errors were encountered: