darktable-org / darktable

darktable is an open source photography workflow application and raw developer
https://www.darktable.org
GNU General Public License v3.0
9.88k stars 1.15k forks source link

retouch: allow full image to be viewed with crop marks #10689

Closed elstoc closed 1 year ago

elstoc commented 2 years ago

For an efficient workflow, I usually do not wish to retouch parts of the image outside of my cropped area and, for this reason, usually crop before retouching. However, I do sometimes want to take replacement source patches from outside of the cropped area and this can be a pain when I can't see those parts of the image. I could temporarily disable crop, but then I'm relying on remembering where the crop ends, and my visual memory sucks.

It might be easier to achieve this sort of workflow if it were possible to view the full image while retouching, but with an overlay showing an outline of the cropped area. I can see that this might not always be desirable so it might be best if this option was behind a toggle button or preference.

AlicVB commented 2 years ago

Good idea !

Showing the full "uncropped" image is not hard. we already have that for some modules, r&p for example. It's just a flag to add to retouch module so crop module is ignored when the first as the focus. (not sure it's actually possible to do that on the fly)

What will be hard, though, is to show the overlay with the cropped area, as that would basically means some communication between the modules, which is quite difficult to implement... or we can go with another flag that would not disable crop module entirely but draw the crop area instead...

I add that to my todo !

elstoc commented 2 years ago

While retouch is active it will be the current gui module so you could probably have crop use that along with a flag in develop or a config parameter to have crop draw the overlay? We could maybe use a pipe flag, like FAST_PIPE?

github-actions[bot] commented 2 years ago

This issue did not get any activity in the past 60 days and will be closed in 365 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.

github-actions[bot] commented 1 year ago

This issue did not get any activity in the past year and thus has been closed. Please check if the newest release or master branch has it fixed. Please, create a new issue if the issue is not fixed.

elstoc commented 1 year ago

I'd still like this

jenshannoschwalm commented 1 year ago

Would like this too. We have to fix some blending code before getting into this.

I am not sure how/if we can visualize the crop here, would it be good to avoid the cropping at all if we have retouch module expanded?

elstoc commented 1 year ago

would it be good to avoid the cropping at all if we have retouch module expanded?

Being able to view the crop within the retouch module would be the most useful to me but I understand it might be hard because the crop occurs later in the pipe. The idea behind leaving the crop marks would be to know which bits of the image need retouching so as not to have to keep moving back-and-forth to the crop module or accidentally retouching cropped portions of the image.

github-actions[bot] commented 1 year ago

This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.

jenshannoschwalm commented 1 year ago

Chris, I have this running here and am thinking about the UI.

To avoid more preferences I would suggest to show full uncropped image either a) always if active and expanded or b) by adding a checkbox

What would be better in your opinion?

elstoc commented 1 year ago

Generally I think we use "active and focused" for this sort of thing and I would personally prefer that it always show the full uncropped image. Are you able to get the crop marks showing? If so I guess the "show guides" button should be used to toggle the crop marks and the guides should show within the crop box.

Yell if I've suggested something that's not possible...

jenshannoschwalm commented 1 year ago

That's a short demo of what i have here atm. Unfortunately the mouse is not visible - i was hovering over the crop borders to demonstrate the "grab-corners" are not visible and cant be grabbed Bildschirmaufzeichnung vom 2023-07-20, 19-54-35.webm

Far "less hacky" than i thought :-)

elstoc commented 1 year ago

Looks good. One thing I would say is that we probably want to avoid the uncropped area being greyed out or at least grey it out less than in the crop UI, so it's easier to see if you want to take source areas from it.

jenshannoschwalm commented 1 year ago

Agreed, personally would like just the borders? But I'm not a gui guy so would take what you/others suggest.

elstoc commented 1 year ago

Agreed