-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fliping orientation does not also flip the current crop #11614
Comments
I think the issue here is a desire to use "flip" as a tool for testing composition while cropping so having flip affect the crop means it can't be used that way. Apart from feature duplication, are there any good reasons to avoid adding flip "back" into the crop module? (it used to be in crop & rotate) Another question for @AlicVB |
good news : I can reproduce the issue :) @elstoc : to answer your request, I would say that we should keep the crop module as simple as possible. even with simple code it's not so easy to avoid bugs and strange situations here, so better avoid to reproduce a new "clipping" nightmare ! |
Ok. Moving crop below orientation was an attempt to mitigate the original issue, and I'm not sure was advisable. So presumably the fix needs to allow flip to be used in its current pipe position without impacting the crop (so that crop continues to select the same area of the image regardless of the flip) |
After some more tests and code review, that's quite tricky : in fact the crop zone is defined in % of the image at the crop module entry, so all distortion that happen before the crop module will change the crop area :( If we want to avoid that we have no other choices than to define the crop with the initial image as reference. oh and currently moving crop before other distort module produce lot of issues (like the one mentioned here). So what I would propose :
What do you think ? |
there is already some code to prevent movements the other way: you can't move orientation above crop but you can move crop below orientation, which seems inconsistent. |
Don't we just require a rule for the crop and rotate&perspective modules added to darktable/src/common/iop_order.c Line 455 in a18cfc3
|
I'll assign this to me and will try to do that for 4.0. |
Yes probably. Will do that. |
See #11643. |
Reopened as a partial fix only. |
Possibly this issue could be renamed to better reflect the missing functionality, because the action initially causing problems can no longer be performed? |
*Updated
issue with moving crop under orientation was fixed but main issue of crop not taking into account what happens with the orientation module changes is still a issue
To Reproduce
add a crop
add orientation and flip the image
move crop module below orientation
Orientation should default above crop because anytime you want to flip you then have to adjust the crop, but in this case its not above crop. When you move crop below orientation it causes many bugs, you can't crop your image again as the red controls are no longer there, image gets glitchy and sometimes dt will crash.
Screencast
(https://streamable.com/ei16tr)
The text was updated successfully, but these errors were encountered: