List Info

Thread: Image difference between Solaris and Linux




Image difference between Solaris and Linux
country flaguser name
United States
2007-02-07 02:56:51
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.

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?

Any other suggestions?

Thanks in advance.

David

CONFIDENTIALITY NOTICE  The information contained in this
e-mail is intended only for the confidential use of the
above
named recipient. If you are not the intended recipient or
person
responsible for delivering it to the intended recipient, you
have
received this communication in error and must not distribute
or 
copy it. Please accept the sender's apologies, notify the
sender 
immediately by return e-mail and delete this communication.
Thank you.
_______________________________________________
Magick-users mailing list
Magick-usersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users

Re: Image difference between Solaris and Linux
user name
2007-02-07 20:57:11
"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.Thyssengriffith.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-usersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )