gimp png's are much smaller than im png's
Posted: 2011-06-13T14:30:42-07:00
Here I demonstrate that gimp's conversion from pgm to png yields a considerably smaller png file than IM's conversion. I tried using the -quality option (-quality 1, -quality 100), but it didn't help.
$ convert -v | head -1
Version: ImageMagick 6.6.4-1 2010-12-17 Q16 http://www.imagemagick.org
$ ls -sh *.pgm
12M src.pgm
$ convert src.pgm im.png
$ gimp src.pgm
[save image as gimp.png]
$ ls -sh *.png
6.7M gimp.png 9.6M im.png
$ identify *.png
gimp.png PNG 4284x2844 4284x2844+0+0 8-bit PseudoClass 256c 6.979MB 0.000u 0:00.000
im.png[1] PNG 4284x2844 4284x2844+0+0 8-bit PseudoClass 256c 9.986MB 0.000u 0:00.000
Shouldn't they both output about the same size file? Indeed, I might even expect them to output the exact same .png file since they are presumably using the same shared library.
Lossless jpeg produces similar results: the lossless jpeg files are much smaller than the png files, but I expected them to be about the same.
$ convert -v | head -1
Version: ImageMagick 6.6.4-1 2010-12-17 Q16 http://www.imagemagick.org
$ ls -sh *.pgm
12M src.pgm
$ convert src.pgm im.png
$ gimp src.pgm
[save image as gimp.png]
$ ls -sh *.png
6.7M gimp.png 9.6M im.png
$ identify *.png
gimp.png PNG 4284x2844 4284x2844+0+0 8-bit PseudoClass 256c 6.979MB 0.000u 0:00.000
im.png[1] PNG 4284x2844 4284x2844+0+0 8-bit PseudoClass 256c 9.986MB 0.000u 0:00.000
Shouldn't they both output about the same size file? Indeed, I might even expect them to output the exact same .png file since they are presumably using the same shared library.
Lossless jpeg produces similar results: the lossless jpeg files are much smaller than the png files, but I expected them to be about the same.