Going Scatty

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
jam@tigger.ws
Posts: 7
Joined: 2016-06-01T22:44:04-07:00
Authentication code: 1151

Going Scatty

Post by jam@tigger.ws »

Hi
I draw text onto a blank canvas of correct size:
mogrify -pointsize 20 -font Helvetica -define png:format=png32 -fill snow -stroke black -strokewidth 5 -draw text 2,22 "look at the huge telescope" -stroke none -draw text 2,22 "look at the huge telescope" /dev/shm/record12.png

perfect.
file /dev/shm/record12.png /dev/shm/record12.png: PNG image data, 177 x 29, 8-bit/color RGBA, non-interlaced

Now I draw a short line
mogrify -pointsize 50 -font Helvetica -define png:format=png32 -fill snow -stroke black -strokewidth 5 -draw text 2,54 "hi" -stroke none -draw text 2,54 "hi" /dev/shm/record11.png

uh uh
file /dev/shm/record11.png /dev/shm/record11.png: PNG image data, 54 x 69, 8-bit colormap, non-interlaced

I've tried everything I've been able to google and man pages without any joy.
imagemagick 8:6.8.9.9-7ubunt amd64 an earlier version works correctly. How do I force behaviour?

On the earlier version I use color "white" here "white" makes greyscale images.
Thanks
James
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Going Scatty

Post by snibgo »

If you have only one file to process, I would use "convert" (or "magick" in v7), not mogrify.
snibgo's IM pages: im.snibgo.com
jam@tigger.ws
Posts: 7
Joined: 2016-06-01T22:44:04-07:00
Authentication code: 1151

Re: Going Scatty

Post by jam@tigger.ws »

If this is too hard for this group who should I ask
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Going Scatty

Post by fmw42 »

see viewtopic.php?f=2&t=29829

(generally it is preferred that you only post to one forum)
Post Reply