-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[FR] Improve visibility of handles in drawn mask. #16388
Comments
You are talking about drawn masks - parametric masks do not have any on-image controls since they compute their effect strength based on the values of each individual pixel. |
Corrected the error. Thanks. |
That's why you can change the color of the drawn masks (all overlays in fact). Use |
We had the same problem recently on macOS, where the OS always reports 72 DPI. |
So should be fixed since 4.6.0, seems like there is still an issue as reported here. @difrkaguilar : Side question, is the size issue on all kind of masks? |
#15845 was a macOS specific bugfix. @difrkaguilar what is your OS? |
@difrkaguilar : That's a screenshot of a |
Do you have
|
screen_dpi_overwrite=-1.000000 |
Ok, so all good on this side. As I don't have a 4k monitor it is hard to debug this on my side. |
Are you using Wayland? I think that screen is to scale the font, but what happens if you scale the screen display? |
X11 no Wayland. OS: Fedora Linux release 37 (Thirty Seven) Workstation Edition x86_64 |
And what happens when you scale the display? |
Gnome only lets you pick 200%. I'm in fedora KDE and I pick fractional (125%). |
That's good to know. But I use Gnome. I think I'm not the only darktable user with this problem. The vertex (vectors) or handles in some applications I think can be adjusted to different scales, not depending on the system, window manager or scale factor but by the applications if it's possible. |
What if you set |
I'll try this ASAP when return to home. Then I'll see and comment about it. Thanks. |
The screen dpi is used to calculate the So setting The macOS fix only changes the |
Set |
Excuse my lack of knowledge about programming, a series of functions that for some seem simple, I know that it is far from being so. I don't know the amount of code that is behind the visualization to draw these masks, but it must be quite complex. It must be recognized that darktable's gradient mask drawing system is even more powerful than the possibilities of gradients that graphic design programs have, for example Inkscape, where it is not possible to make a bend to the gradient, but darktable's gradient masks allow it. Reading a post similar to this one about the possibility of improving the drawing of gradient masks #14728 I make a proposal from my point of view of how the drawing of gradient masks could work in a more effective way than the one used right now. The handlers that I describe here can further enhance the use of these gradient masks, giving more control to the user when positioning these masks in a finer way. The handlers at the start and end of the masks can allow to change the compression of the mask by dragging and dropping the mouse. Likewise, the handlers located in the central line could allow to bend the line until the desired position is achieved. This mask could be used in reverse, also as discussed in #14728 put two position handles at both ends of the center line, these handles at the ends can make the position of the gradient mask more accurate to be able to move indistinctly. This is just an idea. Anyway I make this feature request in case there is any developer interested in implementing it or making other modifications. Screenshot of the gradient draw mask. Screenshot of the gradient draw mask in reverse position. |
@difrkaguilar Do you have the possibility to compile and debug dt yourself? If so, can you set a breakpoint in Lines 1422 to 1443 in e458f34
and see what value |
I don't have to much skills but I'll try to do my best. |
Ups... I tried but I don't have the skills to do those changes. So I'll have to continue working with draw masks as they are now. My fault. Thanks anyway to all for your attention and comments. |
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. |
Is your feature request related to a problem? Please describe.
In many of my photo edits I make a lot of use of draw masks, even several masks on a single image. Something that happens to me is that I'm over 50 years old and my eyesight is exhausted, thanks to the use of prescription glasses I can continue with my work. In my case, having a 32" 4K monitor with 3840 x 2160 resolution, I often find it difficult to select the handlers in the draw masks in the image I am working on.
Describe the solution you'd like
These handles are not always active, only when the mouse passes or hovers over them, so I think it wouldn't be a bad thing if, when hovering over them to make modifications, they were a little larger than they currently are.
BTW I have created a layout specifically for the gradient mask with two additional handles, the start and finish compression, this is just an idea, because when using the scroll + Shift the compression changes the values in jumps, to be more precise go to the masks manager module menu and move the compression slider then holding down the Ctrl while using the mouse scroll. It is more intuitive if you enter these two handlers because visually and more quickly you can place the compression at the point where you want. It would also have the same level of interactivity as the other handlers.
I also put two additional handlers to modify the curvature without the need to use the mouse scroll or without having to go to the masks managers module. These two handlers would work only by placing the cursor over one of them and dragging until the desired curvature is achieved.
Alternatives
One solution would be to introduce a new option in the configuration window in darkroom/modules with the possibility to choose the size of the handler. (I particularly would not like this option as you developers yourselves are not in favor of cluttering the configuration window with options).
But I prefer another solution, a possibility would be to put in the global guide overlay settings popup the option to increase the size of the handles, as it is done now with the contrast option. This option would allow users to adjust the size of the handles to their liking.
Additional context
Draw masks without displaying the masks in yellow. The rotate mask handler is almost imperceptible.
![Screenshot from 2024-02-26 15-41-54](https://private-user-images.githubusercontent.com/67672868/307959077-205ba419-e31c-42c7-acec-101635387cdc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3NjE0NTQsIm5iZiI6MTcxOTc2MTE1NCwicGF0aCI6Ii82NzY3Mjg2OC8zMDc5NTkwNzctMjA1YmE0MTktZTMxYy00MmM3LWFjZWMtMTAxNjM1Mzg3Y2RjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjMwVDE1MjU1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE0NDcyOWIyOGEzZDk1MDY3MjRlN2QwMGMzMzE3ZWMwYjljZjA3MjFlODhjOWMwOTQzNThlODM4NjlkMDE4Y2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.3ko8m_KUE3S6Q6X-xHXs0z6N9odm_z1eC15lW483c3s)
Draw masks displaying the masks in yellow. The rotate mask handler is still almost imperceptible.
![Screenshot from 2024-02-26 15-43-15](https://private-user-images.githubusercontent.com/67672868/307985858-4c585ce9-873c-4c3e-a76e-34f7ea134bb2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3NjE0NTQsIm5iZiI6MTcxOTc2MTE1NCwicGF0aCI6Ii82NzY3Mjg2OC8zMDc5ODU4NTgtNGM1ODVjZTktODczYy00YzNlLWE3NmUtMzRmN2VhMTM0YmIyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjMwVDE1MjU1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYwNDA1OWM4YjdiMzcyOTE2MTRhZDE4YTZiOWRmOWZhNTEzY2VhYmJlYjc5MmM4ZjEwMzBmODNjYTRmMGYyNTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.OwUNIqwtLnXfx4jTDcnISOzs60uvlOmA8JsF_GaVJG8)
Draw masks displaying the handlers bigger than the actual size (this proposal shows the additional handlers for set the compression and curvature)
![Screenshot from 2024-02-26 11-17-47](https://private-user-images.githubusercontent.com/67672868/308148809-eb3c6ac2-43d7-44d2-92a8-fec3132115ac.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3NjE0NTQsIm5iZiI6MTcxOTc2MTE1NCwicGF0aCI6Ii82NzY3Mjg2OC8zMDgxNDg4MDktZWIzYzZhYzItNDNkNy00NGQyLTkyYTgtZmVjMzEzMjExNWFjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjMwVDE1MjU1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg4YTg0YzU4MmNjN2NlMDIzNjUxMzgzM2U4MGZmMzQ4NjUwNjVmNTlmNGVhYzE2MTgyMGY0YWQzNjQzYTc3ZjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ATQp3u9aDQU8crObUK8LksRFkpBXMgfZxEMJa4BPAE4)
Popup menu with the option handlers size option
![Screenshot from 2024-02-26 16-03-22](https://private-user-images.githubusercontent.com/67672868/307987725-c0577572-55d2-427f-aace-796d34836e97.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3NjE0NTQsIm5iZiI6MTcxOTc2MTE1NCwicGF0aCI6Ii82NzY3Mjg2OC8zMDc5ODc3MjUtYzA1Nzc1NzItNTVkMi00MjdmLWFhY2UtNzk2ZDM0ODM2ZTk3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjMwVDE1MjU1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRiYTFjNmUzZTQyMDcwYmUzOWVlNjhiOTM0ZThjOTZjOWViZDU1ZDg0ZmNkMjZhODA4ZmNjZDNiMzNhMjc0ZTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.z8Kb9ib67s0mlASasfd3IVYBRvqdGe__nPDZNIQOKkU)
The text was updated successfully, but these errors were encountered: