Skip to content
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

Closed
wants to merge 1 commit into from
Closed

api: proper GIF operations #39

wants to merge 1 commit into from

Conversation

omelkonian
Copy link
Contributor

@omelkonian omelkonian commented Apr 10, 2017

  • 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 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]

@egabancho
Copy link
Member

can you rebase?

self.image.save(image_buffer, cleaned_image_format, quality=quality)
save_kwargs = dict(quality=quality)

if self.image.format == 'GIF':
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@omelkonian
Copy link
Contributor Author

@egabancho @drjova Please do not merge yet, as I will update it with a solution for the rest of the operations.

@omelkonian omelkonian changed the title api: proper GIF resize api: proper GIF operations Apr 18, 2017
@omelkonian
Copy link
Contributor Author

@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]>
@omelkonian omelkonian closed this Mar 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Operations on GIF images do not preserve its frames.
4 participants