Page 1 of 1

Going Scatty

Posted: 2016-06-01T23:41:44-07:00
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

Re: Going Scatty

Posted: 2016-06-02T00:23:58-07:00
by snibgo
If you have only one file to process, I would use "convert" (or "magick" in v7), not mogrify.

Re: Going Scatty

Posted: 2016-06-02T17:46:25-07:00
by jam@tigger.ws
If this is too hard for this group who should I ask

Re: Going Scatty

Posted: 2016-06-02T18:41:00-07:00
by fmw42
see viewtopic.php?f=2&t=29829

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