ImageMagick 6.5.9 error

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
sysakmin
Posts: 5
Joined: 2010-02-19T02:44:31-07:00
Authentication code: 8675308

ImageMagick 6.5.9 error

Post 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...
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: ImageMagick 6.5.9 error

Post 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
sysakmin
Posts: 5
Joined: 2010-02-19T02:44:31-07:00
Authentication code: 8675308

Re: ImageMagick 6.5.9 error

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: ImageMagick 6.5.9 error

Post 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.
sysakmin
Posts: 5
Joined: 2010-02-19T02:44:31-07:00
Authentication code: 8675308

Re: ImageMagick 6.5.9 error

Post 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
Post Reply