danielgtaylor / jpeg-archive

Utilities for archiving JPEGs for long term storage.
1.16k stars 121 forks source link

More granularity for the strip option #37

Open abarre opened 8 years ago

abarre commented 8 years ago

I need for some images to keep the color profile (ICC) in order to avoid color degradation. The original images is in AdobeRBG (rather than sRGB).

I see that jpegoptim has this kind of choice :

-s, --strip-all   strip all markers from output file
  --strip-none      do not strip any markers
  --strip-com       strip Comment markers from output file
  --strip-exif      strip Exif markers from output file
  --strip-iptc      strip IPTC/Photoshop (APP13) markers from output file
  --strip-icc       strip ICC profile markers from output file
  --strip-xmp       strip XMP markers markers from output file

Do you know if keeping the ICC profile is easily feasible in jpeg-recompress ?