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 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)

This comment has been minimized.

Copy link
@ralsina

ralsina Aug 1, 2016

Member

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

@ralsina

This comment has been minimized.

Copy link
Member

ralsina commented Aug 1, 2016

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

@tikank

This comment has been minimized.

Copy link
Contributor Author

tikank commented Aug 1, 2016

Added.

@ralsina

This comment has been minimized.

Copy link
Member

ralsina commented Aug 1, 2016

Cool! Thanks for the contribution!

@ralsina ralsina merged commit 141ea96 into getnikola:master Aug 1, 2016
2 checks passed
2 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.