"Christina Williams" on  wrote...
| Hi all,
| 
| I've been running a unix script which calls the image magick convert
| command for a long time. This used to run perfectly fine and one day
| inexplicably started giving me this error:
| 
| convert: unable to read font
| '/user/local/share/ghostscript/fonts/n019113l.pfb'
| 
| 
| Here is the line of code:
| 
| /usr/local/bin/convert $text -draw $drawcmd:q $rawinfo $mask_name
| 
| I'll define all the variables here, hopefully it wont be confusing:
| $text = '-fill white -box black -pointsize 50 -gravity south'
| $drawcmd = 'text 0,960 "'$tstamp:q' " '  where $tstamp = 'the date and
| time of creation'
| $rawinfo = '-size 1023x1023 -depth 8 gray:'$filename1
| $mask_name = filename2
| 
| This directory doesnt seem to exist on my computer, and the file doesnt
| exist on other image magick users' computers. I havent changed or edited
| anything within the image magick directories. I'm on a sun blade 2000,
| running solaris and image magick version 6.3. Its been crashing recently,
| causing some strange behavior (not sure if its related but I thought I'd
| mention it). Any thoughts or advice would be greatly appreciated.
| 
Your script looks very IM v5 like, which would be more than 6 years old!
You also do not specify a specific font to use, so you are using the
default. Probably helvetica.

First before you 'draw' on an image I suggest you read that image in!
that is put 'rawinfo' before anything else.

As for why the font is failing...   /user/local/
probably should be    /usr/local/
Looks like your ghostscript was updated and is now miss-installed.

Finally I would not use -draw for drawing text on images like this
the -annotate is the IM v6 operator that does this without needing the
extra level of quoting.

See IM examples:  Text to image
   http://www.imagemagick.org/Usage/text/#annotate
and Annotating Images
   http://www.imagemagick.org/Usage/annotating
for other methods that may be more to your liking.


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
  I'm feeling very tetrahedral today. (As I think about tetra kites)
                                                      --- Anthony Thyssen
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to