jpeg converted image get bigger than the original jpeg?
Posted: 2013-11-27T14:03:56-07:00
I'm new to ImageMagick so pardon me if this is a really stupid question.
I ran the command :
convert -format %w,%h, input.jpg -resize MxM> -identify output.jpg
where M is the longest dimension of the image, say the input is 1024x768, then M=1024, so I'm assuming the dimension of output image will be the same (and it is). However the image size get larger after converted. Say the input is 845941 bytes, the converted image using this command is 901649 bytes. Why is this?
I'm using ImageMagick 6.8.2 and the test input images are Windows sample pictures (the JPEGs that come with the Windows system).
Another question, I've heard that when ImageMagick do convert, it removes the header of the image. Is this true?
Thanks.
I ran the command :
convert -format %w,%h, input.jpg -resize MxM> -identify output.jpg
where M is the longest dimension of the image, say the input is 1024x768, then M=1024, so I'm assuming the dimension of output image will be the same (and it is). However the image size get larger after converted. Say the input is 845941 bytes, the converted image using this command is 901649 bytes. Why is this?
I'm using ImageMagick 6.8.2 and the test input images are Windows sample pictures (the JPEGs that come with the Windows system).
Another question, I've heard that when ImageMagick do convert, it removes the header of the image. Is this true?
Thanks.