Page 1 of 1

ImageMagick 6.5.9 error

Posted: 2010-02-19T02:59:57-07:00
by sysakmin
We are getting error message:

convert: geometry does not contain image `none' @ attribute.c/GetImageBoundingBox/238.
convert: geometry does not contain image `none' @ transform.c/ShaveImage/1285.

while we run the following command in ImageMagick 6.5.9
  • /opt/imagemagick/bin/convert -size 749x63 xc:none -font /sites/sitegalorelang/appl/team/16/fonts/Style25.ttf -pointsize 22 -gravity west \( -clone 0 -annotate 0 "ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ" -background \#000000 -shadow 65x1+1+1 -fill \#FFFFFF -background none -annotate 0 "ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ" -trim \) -delete 0 -background none +append -shave 0x2 /sites/sitegalorelang/appl/team/16/dest/text.png
The same command is working fine in ImageMagick 6.4.5. Can you please help me.

Regards,

-Soma...

Re: ImageMagick 6.5.9 error

Posted: 2010-02-19T10:46:00-07:00
by fmw42
I don't know exactly what you are trying to do (looks like adding a shadow), but you only have one image so +append is not needed nor are the parentheses.

Simplifying your command seems to work fine for me on IM 6.5.9-8 Q16 Mac OSX Tiger

convert -size 749x63 xc:none -font Helvetica -pointsize 22 -gravity west \
-annotate 0 "testing" -background "#000000" -shadow 65x2+2+2 \
-fill "#FFFFFF" -background none -annotate 0 "testing" -trim \
-background none -shave 0x2 tmp.png

Re: ImageMagick 6.5.9 error

Posted: 2010-02-22T00:31:30-07:00
by sysakmin
Hi,

Thank You for your prompt response. Unfortunately this did not solve my problem .

The issue is when we use accented characters (like óáé) in ImageMagick 6.5.9 it does not work . The same command works in ImageMagick version 6.4.5. If we do not use these accented characters , the command works well.
1.
/usr/local/imagemagick/bin/convert -size 200x40 xc:none -font /home/sites/Style25.ttf -pointsize 26 -gravity center \( -clone 0 -fill gradient:\#ff9d00-\#ffdf8b -annotate 0 "ópástén" -trim -matte -bordercolor none -border 0x5 \) -delete 0 -background none -gravity east -append /home/sites/text.png

We get the error
convert: geometry does not contain image `none' @ attribute.c/GetImageBoundingBox/238.

2. The above command as suggested by you
/usr/local/imagemagick/bin/convert -size 749x63 xc:none -font Helvetica -pointsize 22 -gravity west \ -annotate 0 "ópástén" -background "#000000" -shadow 65x2+2+2 \ -fill "#FFFFFF" -background none -annotate 0 "ópástén" -trim \
-background none -shave 0x2 /home/sites/text.png

We get the error
convert: geometry does not contain image `none' @ attribute.c/GetImageBoundingBox/238.
convert: geometry does not contain image `none' @ transform.c/ShaveImage/1285.

Please help me.

Regards,
Soma

Re: ImageMagick 6.5.9 error

Posted: 2010-02-22T07:02:56-07:00
by magick
Download the latest ImageMagick Windows release. We have patch that detects if the string is not UTF-8 and renders it. Let us know if that fixes the problem.

Re: ImageMagick 6.5.9 error

Posted: 2010-02-23T05:49:15-07:00
by sysakmin
Thank you very much for your sugesstion. It seems to be the bug in the version ImageMagick 6.5.9

We have installed the latest Version: ImageMagick 6.5.9-10. This issue is now fixed. :)

Regards,
Soma