3 ms·
A while back I was making red-cyan anaglyphs [1] for which you want to have a slider that lets you move the left and right channels relative to each other so yo
by PaulHoule 2y ago
A while back I was making red-cyan anaglyphs [1] for which you want to have a slider that lets you move the left and right channels relative to each other so you can put objects close to the plane of the screen/paper to minimize all sorts of problems such as Vergence-accommodation conflict.
I wrote a little tkinter program to do it because, not least, tkinter is in the Python standard library.
I found out my stereograms looked OK in tkinter but when I exported the images to the web there where ghosts. What I found out was that modern GUI frameworks do color management in the sense that they output (r,g,b) triples in the color space of your monitor, which is what you get when you take a screenshot on Windows. So if you have a wide gamut monitor you can do experiments where you have a (0, 192, 0) color in an image specified in sRGB and then find it was (16, 186, 15) in a screenshot. [3] Drove me crazy until I figured it out.
What was funny was that tkinter was so ancient that it didn't do any color correction, it just blasted out (0, 192, 0) when you asked for (0, 192, 0).
It also turns out to be a problem in printing, where the CMYK printer presents itself as having an RGB color space where the green is very saturated but never gets very bright, and sRGB green also has red in it, but if you attach the printer's color profile to an image you can force a saturated green. A lot of mobile devices are going in the Display P3 direction so you can get better results publishing files in that format.
That and a few other print projects (so easy to screw up a $150 fabric printing job) have gotten me to care a lot about color management.
[1] https://en.wikipedia.org/wiki/Anaglyph_3D https://en.wikipedia.org/wiki/Anaglyph_3D
[2] https://en.wikipedia.org/wiki/Vergence-accommodation_conflict https://en.wikipedia.org/wiki/Vergence-accommodation_conflic...
[3] the native green on the monitor is more saturated than the sRGB green so it adds a little red and blue to make it look the smae!
- card_zero 2y agoYup. Issues like that have trained me to fear and avoid anything that says "CMYK" or "gamut" or similar, not because they're beyond comprehension, but because for many use cases the whole thing is an unnecessary pantomime. And it's often silently switched on by default, waiting to screw things up for you. Blender does similar things - in order to get what you intended to be pure black produce 0x000000, and what you intended to be pure red produce 0x0000ff, you have to dig down somewhere - "post processing," I think, because they suffer from some fantasy of being Pixar - and switch something to "raw", and as I remember that isn't even the whole story and there's some other tweaks to make too, just to make black output black and red output red.
- PaulHoule 2y agoLast summer I looked a lot at "print on demand" services of which I'd call out https://www.contrado.com/print-on-demand https://www.contrado.com/print-on-demand and something I found amusing was that almost all of them will only take files in sRGB format even though they actually support a gamut which covers some colors better than sRGB and other colors worse. My monitor supports Adobe RGB and covers both spaces pretty well. I think, however, that they have more quality problems if people send files that have different color profiles so they just take sRGB. I had some print jobs go terribly bad, turns out yellow flowers are out of gamut for my camera, for sRGB and CMYK, If you try to print something that has out of gamut colors, the printer will do something to put them into the gamut and you might not like it. I learned to turn on the gamut warning for Photoshop and bring the colors into the CMYK gamut before I print, even if I am sending in an sRGB file. It didn't bother me so much when I was printing 'cards' with my Epson ET-8550, but once I had orders come back ruined, I figured it all out.