Re: -draw image fails if image filename begins with a digit

Bob Friesenhahn <[email protected]> Wed, 23 Jul 2003 13:15:17 -0500 (CDT)
Newsgroups gmane.comp.video.graphicsmagick.bugs
Message-ID <Pine.GSO.4.44.0307231312580.18765-100000@scooby.simplesystems.org>
On Wed, 23 Jul 2003, Glenn Randers-Pehrson wrote:

>
> convert in.png -draw 'image over 100,100 0,0 100.png' out.png
>
> fails with an error message about invalid primitive.  It turns out
> to be due to the image filename beginning with a digit.  The bug
> is exhibited by both ImageMagick and GraphicsMagick.

The safe (and proper) syntax would be:

  convert in.png -draw 'image over 100,100 0,0 "100.png"' out.png

File names, font names, or any other text argument should be quoted
with either single or double quotes.

Bob
======================================
Bob Friesenhahn
[email protected]
http://www.simplesystems.org/users/bfriesen



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01