image size

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Post by el_supremo »

I downloaded your image and called it test.jpg to save some typing. If you do

Code: Select all

identify -verbose test.jpg
it will show that there are three profiles in the image file. The EXIF is 5482 bytes, IPTC is 6678 and XMP is 6461.

Code: Select all

convert -strip test.jpg test2.jpg
will remove the profiles. test.jpg is 30049 bytes and test2.jpg is 11420 after the profiles are stripped.
When you save the file in Photoshop it is stripping the profiles automatically whereas ImageMagick keeps them unless you tell it to throw them away. I don't know how to strip the file in Perl but no doubt someone can help with that.
Pete
Post Reply