ien646 / gamma-icc

Gamma correcting ICC profiles
The Unlicense
17 stars 1 forks source link

Names #1

Open Daniel15 opened 4 months ago

Daniel15 commented 4 months ago

Thanks for this!

Is it possible to give these profiles unique names so they appear like "DisplayCAL sRGB 0.8 gamma" (for example) instead of all appearing as "DisplayCAL calibration preset: sRGB"? It's hard to tell which one is which in the "Assign Profile" list in KDE:

image

ien646 commented 4 months ago

Seems like it's using the description field to display that name. However, the field seems to be length coded at the beginning of the .icc file. I've tried extracting and modifying the .cal file with iccvcgt, but when generating the new .icc, the description field is ignored and the original from the source .icc is used instead.

Try this:

# Remove one '-' at the end if using 2 digits right of the decimal point (i.e. 0.85)
sed -i -e 's/DisplayCAL calibration preset: sRGB/DisplayCAL sRGB 0.8 gamma----------/g' sRGB-0.8.icc

If this works, I might replace the ICCs later.