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...)
>
> Thanks

what about ImageMagick's mogrify or convert?
http://www.imagemagick.org/script/command-line-options.php#profile

To avoid conversion from one profile to another, one should first remove the 
profile:

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 
guess.

-- 
Milan Knizek
knizek (na) volny (tecka) cz
http://www.milan-knizek.net/

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to