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

Refactor out postprocessing hack to load_end in PcdImageFile #2329

Merged
merged 2 commits into from
Jan 1, 2017

Conversation

wiredfool
Copy link
Member

Changes proposed in this pull request:

  • Move single purpose hack in imagefile.load to PcdImagePlugin.load_end()

@@ -42,6 +42,7 @@ def _open(self):
raise SyntaxError("not a PCD file")

orientation = i8(s[1538]) & 3
self.tile_post_rotate = None
if orientation == 1:
self.tile_post_rotate = 90 # hack
Copy link
Member

Choose a reason for hiding this comment

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

Would you also like to remove the '# hack' comment here?

@wiredfool wiredfool merged commit ccccd72 into python-pillow:master Jan 1, 2017
@wiredfool wiredfool deleted the pcd_hack_refactor branch October 2, 2017 13:25
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