Optimization
Posted: 2016-06-02T17:59:25-07:00
Hi
This is not really a developer question except that the developers did something that broke the way image magic did work.
My requirement is very technical and exact (Text overlay on video captured by Sensoray S2253 cards)
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, man pages and ask on the users group without any joy.
Currently imagemagick 8:6.8.9.9-7ubunt amd64, imagemagick 8:6.7.7.10-6ubun amd64 works correctly. How do I force behaviour?
On the earlier version I use color "white" here "white" makes greyscale images.
Thanks
James
This is not really a developer question except that the developers did something that broke the way image magic did work.
My requirement is very technical and exact (Text overlay on video captured by Sensoray S2253 cards)
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, man pages and ask on the users group without any joy.
Currently imagemagick 8:6.8.9.9-7ubunt amd64, imagemagick 8:6.7.7.10-6ubun amd64 works correctly. How do I force behaviour?
On the earlier version I use color "white" here "white" makes greyscale images.
Thanks
James