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

Fix for gallery image rotation #2421

Merged
merged 4 commits into from Aug 1, 2016
Merged

Conversation

tikank
Copy link
Contributor

@tikank tikank commented Aug 1, 2016

Fix for issue #2418. Rotate is replaced with transpose which sets image size correctly.

if value in (2, 4, 5, 7):
im = ImageOps.mirror(im)
im = im.transpose(Image.FLIP_LEFT_RIGHT)
Copy link
Member

Choose a reason for hiding this comment

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

This means you can delete the ImageOps import, I think (Travis tests will fail if you don't)

@ralsina
Copy link
Member

ralsina commented Aug 1, 2016

LGTM, could you add a 1-liner in CHANGES and add yourself to AUTHORS?

@tikank
Copy link
Contributor Author

tikank commented Aug 1, 2016

Added.

@ralsina
Copy link
Member

ralsina commented Aug 1, 2016

Cool! Thanks for the contribution!

@ralsina ralsina merged commit 141ea96 into getnikola:master Aug 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants