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
[RESOLVED] possible bug -resize XX@ IM 6.8.5.7 Mac OSX
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
[RESOLVED] possible bug -resize XX@ IM 6.8.5.7 Mac OSX
Last edited by fmw42 on 2013-05-20T10:04:55-07:00, edited 1 time in total.
Re: possible bug -resize XX@ IM 6.8.5.7 Mac OSX
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
Is the "@" symbol special on MacOSX? I'm running your example on Linux (Ubuntu) and seeing no problem.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: possible bug -resize XX@ IM 6.8.5.7 Mac OSX
On Windows 7, IM 6.7.9 and 6.8.5, with or without double-quotes, the command works fine.
snibgo's IM pages: im.snibgo.com
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: possible bug -resize XX@ IM 6.8.5.7 Mac OSX
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.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: [RESOLVED] possible bug -resize XX@ IM 6.8.5.7 Mac OSX
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!
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!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/