"ALLEN, David" on wrote...
| Hi,
|
| I am using the following ImageMagick command to merge text
onto a gif
| file.
|
| convert -font courier -pointsize 11 -page A4+130 -density
200 po.gif
| text:textfile -compose multiply -composite po.pdf
|
| This command works great on our Linux test box and
ImageMagick 6.1.8 but
| does not work on our production sun machine running
Solaris 9 and
| ImageMagick 6.2.0. The text does not fit onto the image
correctly.
|
Rather than set a -pointsize and using text:
Set a -size appropriate for your image, and use label: or
caption:
instead, and IM will adjust the text to fit the pixel size
you specify.
EG:
convert -font courier -size 120x100 po.gif
caption: textfile -compose multiply
-page A4 -density 200 -composite po.pdf
For more info see IM Examples, Text and Caption
http://w
ww.imagemagick.org/Usage/text/#label
You can also use -gravity to center the text line-by-line
(if set before
the caption: or label: or just left alligned but centered
on image if
set after caption: or label: but before the -composite
oprator.
| I would not think the slight difference in the version of
ImageMagick
| would mave much effect? Solaris uses type-solaris.xml
while the linux
| box uses fontstype-ghostscript.xml. Could this be
responsible?
|
As for the change. send me an example, of it before and
after and I'll
see if I can figure out what is going on.
Note -page and -density does effect text: but also the pdf:
output.
This may be what is going on. Set the settings before the
intended
operator, and reset them afetrward if it effects other
operators.
Anthony Thyssen ( System Programmer ) <A.Thyssen griffith.edu.au>
-----------------------------------------------------------
------------------
But every time I have been happy, the universe has
conspired to do
sometime nasty to me! -- Mollari, Babylon 5,
"Into the Fire"
-----------------------------------------------------------
------------------
Anthony's Home is his Castle http://www.cit.gu.
edu.au/~anthony/
_______________________________________________
Magick-users mailing list
Magick-users imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users
|