On Friday 29 June 2007, Guillaume Dargaud wrote:
> Hello all,
> this is probably an elementary question, but how do you substitute a
> profile in a JPG file without touching the bits ?
> If I do:
> jpegicc -i$AdobeICC -o$AdobeICC Input.jpg Output.jpg
> The file gets recompressed
> I also tried
> jpegicc -n -o$AdobeICC Input.jpg Output.jpg
> The reason I want to do that is that my files contain AdobeRGB profiles
> that are not recognised by some apps. I want to substitute with another
> similar profile that _is_ recognised, without changing anything else (exif
> info, bits...)
what about ImageMagick's mogrify or convert?
To avoid conversion from one profile to another, one should first remove the
convert input.jpg +profile icm -profile compatible_profile.icc output01.jpg
If I recall correctly, when ImageMagick does not find an input profile
embedded in the image or not defined on the command line, it does not convert
the colour space but rather assigns the new profile.
However, some tests would be needed to make sure JPEG is not re-compressed by
this operation. Also, ImageMagick will add some metainfo about itself, I
knizek (na) volny (tecka) cz