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

Flip option or a bug? #9

Open
Athwale opened this issue Dec 18, 2024 · 0 comments
Open

Flip option or a bug? #9

Athwale opened this issue Dec 18, 2024 · 0 comments

Comments

@Athwale
Copy link
Contributor

Athwale commented Dec 18, 2024

For some reason on my device the image resolution has to be flipped.
Even though my images are 680w x 920h, I had to put in 920x680 in your tool which asks for: WIDTHxHEIGHT.
If I put it in as the script asks for (680x920), it will display stretched on the device.

So I needed to change the code to:

 39     wid, hgt = img.size
 40     if specs["height"] != wid or specs["width"] != hgt:
 41         prform("INFO","Flipped image")

Otherwise it would quit with an error.

Is this a bug and you should be asking for HEIGHT x WIDTH? Or is this an oddity of my device and you might want to change your code to allow 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

1 participant