<div dir="auto"><a href="https://superuser.com/questions/1411132/manually-entering-16-bit-color-values-in-gimp/1411238#1411238" rel="noreferrer noreferrer" target="_blank">https://superuser.com/questions/1411132/manually-entering-16-bit-color-values-in-gimp/1411238#1411238</a><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">====</div><div dir="auto"><p>So, forgetting about setting the FG color, <strong>the way to create a
surface with a precision smaller than 1/256 in any component in GIMP
2.10 is using the painting or color tools</strong>. </p>
<p>You can do this, and use the color-picker tool to check for success:</p>
<ol><li>use at least 16bit precision</li><li>fill an image with black;</li><li>Set your foreground color to the lowest possible graylevel (010101 hex color on the color dialog)</li><li>use, for example, the bucket-fill tool and set the opacity to desired level (25% for 1/4 of 1/256 gray, (1/1024 gray)).</li><li>Use the color picker tool to check if you got to the desired level
(1/1024 gray will show 0.000076 for each component - while the 8 bit
gray #010101 is 0.000304 for each component).</li><li>Convert the image to "16 bit integer precision" back <em>before</em>
exporting to .PNG file - I further tested and found out that attempts
to save a 32bit FP precision image as a PNG file will result in an 8bit
png file (all work above is lost). But if the image on GIMP is 16bit
integer, then the PNG export generates a correct 16bit PNG. (Saving as
native .xcf file format will preserve the precision, of course)</li></ol><div dir="auto">====</div><div dir="auto"><br></div><div dir="auto">not sure if bug (IMO) in #6 was fixed or not ....</div></div><div dir="auto"><br><div dir="auto"><br></div><div dir="auto">well, it seems back in 2019 trick was to use layer math, too ...</div><div dir="auto"><br></div><div dir="auto">found via</div><div dir="auto"><br></div><div dir="auto"><a href="https://discuss.pixls.us/t/gimp-color-picker-values/5571/20" target="_blank" rel="noreferrer">https://discuss.pixls.us/t/gimp-color-picker-values/5571/20</a><br></div></div></div>