Open o-l-a-v opened 9 months ago
I will need to inspect how these things are encoded and how I should display them. I don't have much knowledge about how these are done. if you have any info or tips I'd appreciate it.
Cool. 😊 I don't know much about that either, sorry. Maybe the source code of other projects (viewers, decoders?) that handles ICC can be helpful.
I'll take a look into it once I find the time
It seems CactusView does not yet support viewing images with embedded ICC color profile properly. I tested with both JPG and PNG.
Test image source:
Test images transcoded by me:
JPEG example
Sample image can be transcoded to JPG with ICC profile using libjxl ( https://github.com/libjxl/libjxl/releases/tag/v0.9.1 ) like so:
".\libjxl-v0.9.1\cjpegli.exe" ".\forest.jxl" ".\forest_xyb.jpg" --quality=90 --xyb --chroma_subsampling=444
".\libjxl-v0.9.1\cjpegli.exe" ".\forest.jxl" ".\forest.jpg" --quality=90 --chroma_subsampling=444
Result in CactusView vs. GIMP
Using XYB
Not using XYB
PNG example
Sample image can be transcoded to PNG with ICC profile using libjxl ( https://github.com/libjxl/libjxl/releases/tag/v0.9.1 ) like so:
".\libjxl-v0.9.1\djpegli.exe" ".\forest.jpg" ".\forest.png"
Result CactusView vs. GIMP