Repository navigation
MAINT: Cleanly determine write format in pillow - #752
Merged
FirefoxMetzger merged 10 commits intoMar 9, 2022
Merged
Conversation
also deprecate `format` since we no longer need it
Format will continue to be supported, because pillow will consume it.
Contributor
Author
|
@almarklein RTR :) I also removed a helper function that we no longer need. We had it as a wrapper around a pillow function, because pillow was a bit inconsistent (the function didn't support all modes pillow officially mentioned). I added a PR upstream to fix that and now we can remove the helper here and simply match pillow's behavior. |
Contributor
Author
|
bumping this since it hasn't received any activity for a while. Are you able to review @almarklein? If not, I can find a different solution, just let me know :) |
Closed
Closed
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.
Closes: #498, #604
Solves 50% of: #324
This PR cleans up the way pillow determines if it can write a format or not and makes use of
format_hintto choose the writing format when writing to file/likes.It also adds a few extensions that pillow supports but that we didn't track explicitly yet. Most notably: PDF (writing only) and WEBP (reading and writing). I"ll add a snippet to both issues.