Xarx Posted July 2, 2012 Share Posted July 2, 2012 Does PDN use internally sRGB or RGB color coding? For example, when I scan an image from within PDN and use the default Windows color profile (sRGB), is then the image in PDN sRGB-encoded or not? I'd say that it is sRGB encoded. But almost all PDN tools and plugins do not bother to decode it before manipulating it, am I correct? The correct processing sequence should be sRGB -> RGB -> image manipulation -> RGB -> sRGB while most tools manipulate the sRGB image directly: sRGB -> manipulation -> sRGB. Am I right? Martin. Link to comment Share on other sites More sharing options...
midora Posted July 2, 2012 Share Posted July 2, 2012 Paint.NET has no idea about color profiles. You may add a color profile if you are saving your image as PDF. Link to comment Share on other sites More sharing options...
Xarx Posted July 2, 2012 Author Share Posted July 2, 2012 I know that PDN has no explicit means to work with color profiles. But it cannot avoid working with color profiles implicitly - because scanners, printers, image files (when loading/saving) and Windows itself do use them. Thus I expect that when scanning, PDN receives sRGB encoded image. when printing, it sends the sRGB image to the printer without decoding it (the Windows do the decoding then, I suppose). But what does PDN do when loading/saving an image from/to disk? In particular, when a loaded image uses different color space, does PDN convert the image to RGB, or to sRGB? And does PDN do that consistently, or is the result sometimes RGB, and sometimes sRGB? I am asking because I needed to perfor some a little more complex calculations on scanned images using the CodeLab, and the results were not satisfactory. The results improved when I considered the image sRGB encoded, but they were still far from perfect. Link to comment Share on other sites More sharing options...
midora Posted July 3, 2012 Share Posted July 3, 2012 I guess you know color management is a complex thing. You can not do a calculation from sRGB to RGB because RGB alone means nothing. You always have to define the interpretation of the RGB values (i.e. sRGB or Adobe RGB). The minimal additional information to the RGB values is the definition of the white point and the primaries. If your image does not provide additional information the assumption that it contains sRGB values is standard nowadays else you should provide your deivce driver the color profile (but Paint.NET does not do this). Link to comment Share on other sites More sharing options...
Xarx Posted July 3, 2012 Author Share Posted July 3, 2012 Yes and no, it depends on which kind of calculation you are doing. The basic thing in which sRGB and RGB differ is that RGB is "linear", while sRGB is not. Moreover, the conversion formulas for most pixel characteristics like saturation, HSV value, chroma, luminance use RGB colors, not sRGB encoded (gamma corrected) colors (see Wikipedia). It seems that PDN has some internal knowledge about sRGB. Because when you e.g. make a printscreen, paste it into PDN and save it as .png, the saved image contains the sRGB flag (ancillary chunk, see Wikipedia). But if you create and edit a new image in PDN and save it as .png, it does NOT contain this sRGB flag, meaning that the image is RGB encoded, not sRGB. (And this is correct behavior, in my opinion.) And thus I repeat my original question: When I scan an image with PDN, is the image sRGB encoded or not? It should be, I suppose. Link to comment Share on other sites More sharing options...
Maximus Panin Posted August 28, 2018 Share Posted August 28, 2018 Also interesting. Does it accept the default Windows profile ? Link to comment Share on other sites More sharing options...
Rick Brewster Posted August 28, 2018 Share Posted August 28, 2018 @Maximus Panin, this thread is 6 years old ... if you have a question, please create a new thread. The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Recommended Posts