Backport PNG/ZIP improvements from PIL repo#95
Merged
aclark4life merged 4 commits intopython-pillow:masterfrom Mar 12, 2013
Merged
Backport PNG/ZIP improvements from PIL repo#95aclark4life merged 4 commits intopython-pillow:masterfrom
aclark4life merged 4 commits intopython-pillow:masterfrom
Conversation
This reverts commit b29326b.
This reverts commit 5baa1ac.
- add new FASTOCTREE quantizer with alpha support - make ZIP compress level and type configurable - support reading/writing PNGs with paletted alpha source https://bitbucket.org/effbot/pil-2009-raclette/commits/3637439d51693c92028a7c4cfa75f5db583de357
limit color and trancparency palette to 2^bits entries, when a PNG is saved with the 'bits' PNG encoder option
aclark4life
added a commit
that referenced
this pull request
Mar 12, 2013
Backport PNG/ZIP improvements from PIL repo
Member
|
Thanks for all of this! |
Member
|
Doh! This may have broken Python 3 compat: https://travis-ci.org/python-imaging/Pillow/jobs/5437005 |
Contributor
|
still broken |
Member
|
How so? |
Contributor
Traceback (most recent call last):
File "E:\temp\converter.py3", line 224, in shrinkImage
im.save(outFile, "PNG", transparency=im.info.get('transparency'))
File "e:\programme\Python32\lib\site-packages\pillow-2.0.0-py3.2-win32.egg\PIL\Image.py", line 1467, in save
save_handler(self, fp, filename)
File "e:\programme\Python32\lib\site-packages\pillow-2.0.0-py3.2-win32.egg\PIL\PngImagePlugin.py", line 553, in _save
transparency = max(0, min(255, im.encoderinfo["transparency"]))
TypeError: unorderable types: bytes() < int()
unorderable types: bytes() < int()I've finally some time to test the current version against our user-provided images. It crashes if the image has a transparency palette. His solution puts either bytes or an int into the same variables and that doesn't work. |
Member
|
Thank you! |
radarhere
pushed a commit
to radarhere/Pillow
that referenced
this pull request
Mar 5, 2023
Run valgrind tests when GitHub Actions file changes
radarhere
pushed a commit
to radarhere/Pillow
that referenced
this pull request
Sep 24, 2023
Changed shell commands to better match main repository
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Had to revert 5baa1ac (and a fix for that commit b29326b). Was already handled by the changes.
source https://bitbucket.org/effbot/pil-2009-raclette/commits/3637439d51693c92028a7c4cfa75f5db583de357
https://bitbucket.org/effbot/pil-2009-raclette/commits/5c682473c68352bea416da3e2814081d992f74f8