CactusViewer icon indicating copy to clipboard operation
CactusViewer copied to clipboard

Support embedded ICC color profile

Open o-l-a-v opened this issue 1 year ago • 3 comments

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:

  • Web page containing multiple images: https://people.csail.mit.edu/ericchan/hdr/hdr-jxl.php
  • Image in question: https://people.csail.mit.edu/ericchan/hdr/jxl_images/20140606_102418_IMGP0297.jxl

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:

  • With XYB: ".\libjxl-v0.9.1\cjpegli.exe" ".\forest.jxl" ".\forest_xyb.jpg" --quality=90 --xyb --chroma_subsampling=444
  • Without XYB: ".\libjxl-v0.9.1\cjpegli.exe" ".\forest.jxl" ".\forest.jpg" --quality=90 --chroma_subsampling=444

Result in CactusView vs. GIMP

Using XYB

240131 - CactusViewer - JPEG with ICC color profile XYB

Not using XYB

240131 - CactusViewer - JPEG with ICC color profile

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

240131 - CactusViewer - PNG with ICC color profile

o-l-a-v avatar Jan 31 '24 15:01 o-l-a-v