unable to crop image
Posted: 2014-01-10T13:34:32-07:00
I have two 1095x645 png images which load fine in any web browser.
When I run this command on the first image, it crops the image.
But when I run the same command on the second image, I get an error.
Searched the forums, and there are suggestions to rebase before cropping, but not sure how that advice applies here.
On Mac running OS10.9.1
Version: ImageMagick 6.8.7-7 Q16 x86_64 2013-11-27 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules
Delegates: bzlib freetype jng jpeg ltdl png xml zlib
When I run this command on the first image, it crops the image.
Code: Select all
convert img1.png -crop 20.7058823529%x20.8%+59.3129411765+350.88 img1-crop.png
Code: Select all
convert img2.png -crop 20.7058823529%x20.8%+59.3129411765+350.88 img2-crop.png
Code: Select all
convert: geometry does not contain image `ok.png' @ warning/transform.c/CropImage/666.
On Mac running OS10.9.1
Version: ImageMagick 6.8.7-7 Q16 x86_64 2013-11-27 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules
Delegates: bzlib freetype jng jpeg ltdl png xml zlib