Hugemann on wrote...
| Hi,
|
| I have a logo as an Adobe Illustrator (*.ai) vector graphics file. I
| would like to transform this into GIFs of various sizes in order to
| overlay it as a logo on JPEGs of various dimensions. I stored the vector
| graphic as logo.svg (I also tried vector EPS instead). I converted it,
| for instance via
|
| convert -resize x300 logo.svg logo.gif
|
| Using this command line it seems that IM first converts the SVG to some
| internal format using the resolution information that is given in the
| SVG and than recalculates this intermediate result into the final GIF --
| with all the losses and artefacts that I am trying to circumvent by
| using a vector graphic as a start.
|
| So is there a way to tell IM to convert the vector graphic directly into
| the desired size? Perhaps by telling it some virtual size of that vector
| graphic?
|
| With vector EPS the result was just the same.
|
Rather than using -resize define the dot-per-inch density for the image
convert -density 200 logo.svg logo.png
Adjust the '200' to get the size you want the image to be.
EG if the SVG image is 2 inchs high than the above will make you image
400 pixels high. Default density is 72 dpi
Also note that as GIF is not your final format I suggest you use PNG.
GIF is lossy in terms of a reduces number of colors (256 color limit)
and a boolean (or just on or off) transparency. PNG does not have those
problems and saves the images perfectally as is, including all colors
and semi-transparent colors.
Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]>
-----------------------------------------------------------------------------
A / \ o `` Impressive...
/</ \/|> Obi Wan has taught you well. ''
/ \ /\
/___\ \ \ -- StarWars
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users