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

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
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

Post 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
Last edited by fmw42 on 2013-05-20T10:04:55-07:00, edited 1 time in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post by magick »

We cannot reproduce the problem. We're using ImageMagick 6.8.5-7, the current release. Your command returns without complaint.
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

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

Post by glennrp »

Is the "@" symbol special on MacOSX? I'm running your example on Linux (Ubuntu) and seeing no problem.
snibgo
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

Post by snibgo »

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
User avatar
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

Post 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.
User avatar
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

Post 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!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply