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

Rotate display #1

Open
muffl0n opened this issue Jun 22, 2018 · 5 comments
Open

Rotate display #1

muffl0n opened this issue Jun 22, 2018 · 5 comments

Comments

@muffl0n
Copy link

muffl0n commented Jun 22, 2018

Did you think about adding the possibility for rotating the display? The demo for the 2.7" display with three colors has the possibility to do that, would be nice to have this option here, too.

PS: Thank you very much for this very useful project! Would love to help out someday. :)

@elad661
Copy link
Owner

elad661 commented Jun 22, 2018

Hi,
I can add image rotation support. Keep in mind that it is easy to rotate in your own code, just pass image.rotate(90, expand=True) to any of the display update functions instead of passing image directly.

It might be more convenient to add another argument to the EPD class init function for specifying rotation degrees, save it, and then rotate on every display update if self.rotation_degrees != 0.

This should be easy to add and doesn't require a lot of Python knowledge, so if you want to help out - I'd accept a pull request to add this feature :)

@muffl0n
Copy link
Author

muffl0n commented Jun 23, 2018

Thank you very much for your feedback! I will have a look later and am hoping to find the time to submit a PR.

@sonic2wb
Copy link

Any update on this. i tried atting image.rotate to the interactive demo but it seems to just ignore it.

@muffl0n
Copy link
Author

muffl0n commented Dec 17, 2018

No.
Did you check the docs for image.rotate? Maybe you are using it wrong.
https://pillow.readthedocs.io/en/3.1.x/reference/Image.html#PIL.Image.Image.rotate

@netlob
Copy link

netlob commented May 2, 2019

yep it ignores it...

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

No branches or pull requests

4 participants