captkronos Posted July 9, 2018 Share Posted July 9, 2018 I have just noticed that several programs including Paint.Net are exhibiting what appears to be a bug in how jpegs are created. It exhibits as follows: Create a pure red image with rgb: 255,0,0. Save it to a jpeg file with quality of 100% (or any other value). Then load that image and check the colour using the Color Picker tool. The values returned will be 254,0,0. Trying with green, 0,255,0 and it gets converted to 0,255,1. Blue, 0,0,255 gets converted to 0,0,254. Grey, 136,136,136 stays the same. I assume it is due to some rounding errors. I realize jpeg is lossy but I can't understand why an image of a single colour, saved at a high quality setting (100%), would result in such changes. The exact same changes occur with other Windows and Android programs, so the error must be within a commonly used jpeg library. Link to comment Share on other sites More sharing options...
BoltBait Posted July 9, 2018 Share Posted July 9, 2018 If you wish to better understand the jpg file format, read the specification: https://www.w3.org/Graphics/JPEG/jfif3.pdf In it, you will see that jpg is lossy even at 100%. This is not a bug in Paint.NET... closing. Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
Recommended Posts