-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
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
api: proper GIF operations #39
Conversation
can you rebase? |
flask_iiif/api.py
Outdated
self.image.save(image_buffer, cleaned_image_format, quality=quality) | ||
save_kwargs = dict(quality=quality) | ||
|
||
if self.image.format == 'GIF': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just this one, are we sure is always capital GIF
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will capitalize, to be 100% sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@egabancho @drjova Please do not merge yet, as I will update it with a solution for the rest of the operations. |
@drjova ping |
* Adds custom behaviour for operations on GIF images, as `PIL.Image` operations do not work out-of-the-box (closes #41). * Additionally passes `save_all=True` as a keyword arguement on `PIL.Image.save` when serving the file over HTTP. * Bumps `Pillow`'s version to 3.4, where they introduce functionality for creating GIF images out of individual frame images. * Updates tests to cover GIF operations. Signed-off-by: Orestis Melkonian <[email protected]>
Adds custom behaviour for operations on GIF images, as
PIL.Image
operations do not work out-of-the-box (closes Operations on GIF images do not preserve its frames. #41).
Additionally passes
save_all=True
as a keyword arguement onPIL.Image.save
when serving the file over HTTP.Bumps
Pillow
's version to 3.4, where they introduce functionalityfor creating GIF images out of individual frame images.
Updates tests to cover GIF operations.
Signed-off-by: Orestis Melkonian [email protected]