chip2 Posted December 2, 2023 Share Posted December 2, 2023 In Affinity Photo 2.3.0 in the Levels dialog, the "Gamma" slider feels inverted to me: Turning it up (right direction) makes the image darker. Somehow I feel it more intuitive that increasing it should result in a brighter image. I'm sure there's some mathematical reasoning behind it, but it feels odd to me. Does anyone else feel that it would be more logic if it were the other way around? Quote Link to comment Share on other sites More sharing options...
NotMyFault Posted December 2, 2023 Share Posted December 2, 2023 It is simple math: gamma is used as exponent applied to the current lightness value. Higher gamma values will lead to lower output, because lightness is normalized to a range from zero to 1. So your gut feeling is wrong. It is kind of same wrong as wanting a larger share of a cake, and choosing 1/3 instead of 1/2. larger denominator results in lower share. loukash 1 Quote Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080 LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 iPad Air Gen 5 (2022) A2589 Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps. Link to comment Share on other sites More sharing options...
smadell Posted December 2, 2023 Share Posted December 2, 2023 Although I understand the math, my “gut” understanding of the Gamma slider has always been to see it as the “grey point.” I visualize this as if I had created a black to white gradient map with a 50% grey value dead center. If I shift that central point to the right, the underlying image gets darker because more of the midtones are being mapped to darker grey values. Slide the midpoint to the left, and the image gets lighter, because the underlying luminance values in the midtones are being mapped to even lighter values. I don’t know if the Gamma slider is precisely equivalent to a Grey Point slider mathematically. But, conceptually, it has always worked for me as a way to understand what’s going on. KLE-France 1 Quote Affinity Photo 2, Affinity Publisher 2, Affinity Designer 2 (latest retail versions) - desktop & iPad Culling - FastRawViewer; Raw Developer - Capture One Pro; Asset Management - Photo Supreme Mac Studio with M2 Max (2023}; 64 GB RAM; macOS 13 (Ventura); Mac Studio Display - iPad Air 4th Gen; iPadOS 17 Link to comment Share on other sites More sharing options...
walt.farrell Posted December 2, 2023 Share Posted December 2, 2023 33 minutes ago, NotMyFault said: It is simple math: gamma is used as exponent applied to the current lightness value. Higher gamma values will lead to lower output, because lightness is normalized to a range from zero to 1. So your gut feeling is wrong. It is kind of same wrong as wanting a larger share of a cake, and choosing 1/3 instead of 1/2. larger denominator results in lower share. That makes sense. But why is white on the right of the Gamma slider, and black on the left? Wouldn't it make more sense if that layout was reversed? Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. iPad: iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1 Link to comment Share on other sites More sharing options...
smadell Posted December 2, 2023 Share Posted December 2, 2023 Interesting question, Walt. But the same question could be asked about the Black and White sliders. After all, sliding the Black slider to the right doesn’t make the image whiter - it makes it blacker. And vice versa for the White slider. Obviously the gradients under the sliders correspond to the underlying image, and not the result. And.. at this point, changing it would throw the Affinity world into an absolute frenzy! Quote Affinity Photo 2, Affinity Publisher 2, Affinity Designer 2 (latest retail versions) - desktop & iPad Culling - FastRawViewer; Raw Developer - Capture One Pro; Asset Management - Photo Supreme Mac Studio with M2 Max (2023}; 64 GB RAM; macOS 13 (Ventura); Mac Studio Display - iPad Air 4th Gen; iPadOS 17 Link to comment Share on other sites More sharing options...
walt.farrell Posted December 2, 2023 Share Posted December 2, 2023 Good point, @smadell. Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. iPad: iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1 Link to comment Share on other sites More sharing options...
NotMyFault Posted December 2, 2023 Share Posted December 2, 2023 1 hour ago, walt.farrell said: That makes sense. But why is white on the right of the Gamma slider, and black on the left? Wouldn't it make more sense if that layout was reversed? If you want to use something like gamma to the purpose of brightening, and want higher numbers for more brightness then you need to use inverse gamma. Possible, but don’t count me in. Quote Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080 LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 iPad Air Gen 5 (2022) A2589 Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps. Link to comment Share on other sites More sharing options...
walt.farrell Posted December 2, 2023 Share Posted December 2, 2023 15 minutes ago, NotMyFault said: If you want to use something like gamma to the purpose of brightening, and want higher numbers for more brightness then you need to use inverse gamma. Possible, but don’t count me in. It just seems to me that having a slider where sliding in the "bright" direction darkens the image, and slicing to the "dark" direction lightens the image, is backwards and would contribute to one's gut feeling that it's working inversely. Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. iPad: iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1 Link to comment Share on other sites More sharing options...
smadell Posted December 2, 2023 Share Posted December 2, 2023 I think the problem is that we are conflating the "Gamma" slider with a "Brightness" slider, and it really isn't that (although admittedly that's what it "feels like.") Methinks it's just a matter of getting used to what the Gamma slider actually does, and coming to understand it on its own terms. Can you imagine how many posted complaints there would be if the Gamma/InverseGamma/Brightness slider (whatever we would call it – you know, the third slider down) was reversed to work the way the OP describes? I can hear the complaints now - "how can I use this ridiculous program that doesn't work exactly the way Photoshop does?" Also, why not just use the "Brightness and Contrast" adjustment if the Gamma slider in Levels is too much to bear? walt.farrell 1 Quote Affinity Photo 2, Affinity Publisher 2, Affinity Designer 2 (latest retail versions) - desktop & iPad Culling - FastRawViewer; Raw Developer - Capture One Pro; Asset Management - Photo Supreme Mac Studio with M2 Max (2023}; 64 GB RAM; macOS 13 (Ventura); Mac Studio Display - iPad Air 4th Gen; iPadOS 17 Link to comment Share on other sites More sharing options...
chip2 Posted December 2, 2023 Author Share Posted December 2, 2023 (edited) I understand the math. This thread isn't about math. Obviously, gamma isn't the same as "brightness" or "contrast", but it does make the image brighter or darker. And this is where I think it makes sense to have it behave in a way that resembles a brightness control: That increasing means "brighter" and decreasing means "darker". I'm not talking what is correct or wrong, but what feels correct or wrong to normal non-technical people. Edited December 2, 2023 by chip2 Quote Link to comment Share on other sites More sharing options...
smadell Posted December 3, 2023 Share Posted December 3, 2023 You're not wrong, @chip2. You're just swimming against a rather strong tide. I would dare say that every photo editing software out there that includes a Levels adjustment with a "Gamma" or "Grey Point" slider works in the anti-intuitive manner you're describing. There are literally decades of precedent for a Gamma/Grey Point/Midtones slider that works the way Affinity Photo presents it. Doing it a different way, no matter how intuitive it may feel to "non-technical people," will alienate a large crowd of editors with experience in Affinity Photo and a plethora of other applications. It is said that "haters gotta hate," and switching up the Levels slider(s) would just be another aspect of AP for naysayers to point at and claim that Serif doesn't know what it's doing. Like I said, it's not that you're wrong – it's just that there are some fights that are not worth fighting. Quote Affinity Photo 2, Affinity Publisher 2, Affinity Designer 2 (latest retail versions) - desktop & iPad Culling - FastRawViewer; Raw Developer - Capture One Pro; Asset Management - Photo Supreme Mac Studio with M2 Max (2023}; 64 GB RAM; macOS 13 (Ventura); Mac Studio Display - iPad Air 4th Gen; iPadOS 17 Link to comment Share on other sites More sharing options...
fde101 Posted December 3, 2023 Share Posted December 3, 2023 All being said, the way that it responds vs. the way it is visualized are definitely in contrast. If it is to work the way it does, it would make sense to reverse the shading, or failing that, to remove it and leave it as a plain ordinary slider. Note also that there are Lift, Gamma and Gain controls in traditional color grading toolsets such as Resolve, and the Gamma control in Resolve does work the opposite of what is described here - moving it to the right makes things brighter, to the left darker - so there is precedent in other software for making it work more logically and less mathematically. Most of the people using the software are more interested in the creative effect of the tool than in the math behind it. Quote Link to comment Share on other sites More sharing options...
chip2 Posted December 3, 2023 Author Share Posted December 3, 2023 Blender's gamma works the same way as Resolve btw. (left = darker, right = brighter): So 1.0 is normal, 1.3 is "slightly pale" and 0.7 is "darker than usual". So yes, I might be swimming against a strong tide (great way of putting it!), but sometimes I think it's healthy to revise one's own habits. Especially if they're causing confusion for people who don't yet have any habits at all. I'm also not here to dictate how things should be... I just wanted to bring up the topic in case it was not an intentional design. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.