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
Going Scatty
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Going Scatty
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
-
- Posts: 7
- Joined: 2016-06-01T22:44:04-07:00
- Authentication code: 1151
Re: Going Scatty
If this is too hard for this group who should I ask