Page 1 of 1

[RESOLVED] possible bug -resize XX@ IM 6.8.5.7 Mac OSX

Posted: 2013-05-20T00:35:41-07:00
by fmw42
I cannot convert this image (http://en.wikipedia.org/wiki/File:Barns ... tetons.jpg) with -resize XX@ without an error message. This problem seems to go back quite a while in terms of IM versions. I tested a number of versions back to 6.7.6.10


convert Barns_grand_tetons.jpg -strip -resize 3145728@ -quality 85 Barns_grand_tetons_tmp.jpg
or
convert Barns_grand_tetons.jpg -strip -resize "3145728@" -quality 85 Barns_grand_tetons_tmp.jpg
convert: negative or zero image size `Barns_grand_tetons.jpg' @ error/resize.c/ResizeImage/2877.


It works fine if I do

convert Barns_grand_tetons.jpg -strip -resize 2000x1500 -quality 85 Barns_grand_tetons_tmp2.jpg

Re: possible bug -resize XX@ IM 6.8.5.7 Mac OSX

Posted: 2013-05-20T04:15:04-07:00
by magick
We cannot reproduce the problem. We're using ImageMagick 6.8.5-7, the current release. Your command returns without complaint.

Re: possible bug -resize XX@ IM 6.8.5.7 Mac OSX

Posted: 2013-05-20T07:32:46-07:00
by glennrp
Is the "@" symbol special on MacOSX? I'm running your example on Linux (Ubuntu) and seeing no problem.

Re: possible bug -resize XX@ IM 6.8.5.7 Mac OSX

Posted: 2013-05-20T09:21:59-07:00
by snibgo
On Windows 7, IM 6.7.9 and 6.8.5, with or without double-quotes, the command works fine.

Re: possible bug -resize XX@ IM 6.8.5.7 Mac OSX

Posted: 2013-05-20T10:04:29-07:00
by fmw42
It was a bad @ character that was copied with a command that someone sent me. Once I looked carefully in my text editor with invisibles showing I saw the bad character. Sorry for the false alarm. Thanks to those who tested it for me.

Re: [RESOLVED] possible bug -resize XX@ IM 6.8.5.7 Mac OSX

Posted: 2013-05-21T22:52:19-07:00
by anthony
Special Unicode '@'???

I have had that with spaces, '-' and various quote characters too.

Some forums try to do the user a favor and replace characters with unicode equivalent versions, which are not ASCII!