I still feel like I haven't gotten the hang on it. Here's an example where I don't do anything with the profile - just open a tiff file and then save it again: $ iccdump -s -t desc -i square2.tiff Embedded profile found at file offset 4428 (0x114c) TextDescription: ASCII data, length 55 chars: 0x0000: Epson V600 VSE gamma 1.8 with matrix and shaper curves No Unicode data No ScriptCode data $ gegl -- gegl:tiff-load path=square2.tiff gegl:tiff-save path=square2-out.tiff bitdepth=16 fp=0 $ iccdump -s -t desc -i square2-out.tiff Embedded profile found at file offset 24788 (0x60d4) TextDescription: ASCII data, length 13 chars: 0x0000: babl profile No Unicode data No ScriptCode data First of all - if I don't specify bitdepth and fp in the gegl:tiff-save, gegl seems to convert the image to 32b float. But more importantly, gegl seems to discard the original color profile and substitute its own babl profile. If I try to convert the space in between: $ gegl -- gegl:tiff-load path=square2.tiff gegl:convert-space path='/usr/share/color/icc/colord/ProPhotoRGB.icc' gegl:tiff-save path=square2-out.tiff bitdepth=16 fp=0 $ iccdump -s -t desc -i square2-out.tiff Embedded profile found at file offset 33002 (0x80ea) TextDescription: ASCII data, length 13 chars: 0x0000: babl profile No Unicode data No ScriptCode data It doesn't seem like it converted the color. Just reassigned the profile from the scanner to its internal babl one. m
Attachment:
square2.tiff
Description: TIFF image