However, specifying pixel count of 3630000 sometimes creates a 2200x1649 image. An example is shown below:
Code: Select all
$ convert -size 2304x3072 xc:white x.jpg
$ identify x.jpg
x.jpg JPEG 2304x3072 2304x3072+0+0 8-bit PseudoClass 256c 27.8KB 0.000u 0:00.000
$ convert -resize @3630000 x.jpg y.jpg
$ identify y.jpg
y.jpg JPEG 1649x2200 1649x2200+0+0 8-bit PseudoClass 256c 14.4KB 0.000u 0:00.000
A workaround is to specify one pixel more, @3630001, which creates the correct 1650x2200 image.
Version of ImageMagick used for testing is:
Code: Select all
$ convert --version
Version: ImageMagick 6.6.2-6 2011-03-16 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP