I have noticed a strange behavior in imagemagick (version 6.5.7-8 2010-12-02 Q16 and
version 6.6.0-4 2011-06-15 Q16 ), in which cropping an image will result in a increased filesize.
Edit: The problem commented here seems to be solved. Read this response for more information.
I have a big set of of grayscale images like this:
http://www.jespa.es/imageMagickQuestion/original.jpg
This is a grayscale 5345x2793 jpeg and its filesize is 398 Kb. It has about 15 Mpixels.
I am not sure of the quality value of the image, so I do a conversion to a known value of quality with the command:
Code: Select all
convert original.jpg -quality 80 convert_quality80.jpg
The strange behavior comes when I try to crop the image to trim the borders with the command:
Code: Select all
convert original.jpg -quality 80 -crop 3550x2600+750 +repage convert_quality80_crop3550x2600.jpg
Any idea of why the cropped file need more disk space to store less Mpixels? I have thousands of similar images and need to reduce disk space.
I have let the output of "identify -verbose" for each file in this directory.
Thanks.