Change profile

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

PerlMagick will perform a color transform if the image has a color profile associated with it and you call $image->Profile() and ImageMagick has LCMS support. If no profile is associated with the image, you must call $image->Profile() twice; once to associate a color profile and again to perform the color transformation.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

You can get the ICC, ICM, or IPTC image profiles with
  • $image->Get('ICC');
Substitute ICM or IPTC if need be. You can also save profiles to disk with the Write() method by using these prefixes: 8BIM, 8BIMTEXT, 8BIMWTEXT, APP1, APP1JPEG, EXIF, XMP, ICM, ICC, IPTC, IPTCTEXT, IPTCWTEXT (e.g. $image->Write('8BIM:myprofile.bin');).
Post Reply