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

TiffIO: Allow bottom left origin for images #1428

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

zm711
Copy link
Contributor

@zm711 zm711 commented Mar 6, 2024

Fixes #876.

I added in a note (in the docstring) explaining that upper left is the python default (from PIL and pillow). As a default I left the upper left, but if the user sets a new argument python_image_origin=False, then it will do bottom left. I agree that upper left is weird, but it is what the python world expects, so I think the boolean is fair (python standard vs other standard).

  1. I don't love the name I came up with of python_image_origin so if someone has a better name let me know.
  2. I only did a boolean, ie 2 choices, but I guess we could do more complicated, but I think all that flipping is dangerous.

@zm711 zm711 added the IO label Mar 7, 2024
@alejoe91 alejoe91 added this to the 0.13.1 milestone Apr 5, 2024
@zm711
Copy link
Contributor Author

zm711 commented Apr 5, 2024

Meeting discussion: string parsing vs boolean for setting bottom-left vs top-left.

@zm711 zm711 requested a review from apdavison April 5, 2024 18:12
Copy link
Contributor Author

@zm711 zm711 left a comment

Choose a reason for hiding this comment

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

fix tests

neo/test/iotest/test_tiffio.py Outdated Show resolved Hide resolved
neo/io/tiffio.py Outdated Show resolved Hide resolved
@zm711 zm711 modified the milestones: 0.13.1, 0.14.0 May 3, 2024
@zm711
Copy link
Contributor Author

zm711 commented Jun 7, 2024

@apdavison I think you're best to review this, but if you think someone else is better just let me know. This is done now so you can review and merge whenever you want (or at our next meeting--no rush).

@apdavison apdavison self-assigned this Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ImageSequences image orientation
3 participants