Fred Weinhaus on  wrote...
| convert white to transparent in your 1.svg, then composite together
| 
| 
| convert 1.jpg \( 1.svg -transparent white \) -composite 1composite.jpg
| 
| 
| I believe that the result will be the size of the background image 
| (1.jpg) automatically, but the 1.svg will overlay only as much as is 
| in the top left area that is the size of the background. So anything 
| outside the background area in the bottom or right will be cut off.

You can adjust the size of the SVG image by adjusting the -density
setting before giving the SVG file to read. The larger the density, the
smaller the larger the SVG image becomes.  You should also be able to
specify the background in the SVG itself does not paint the background.

The top left position can also be adjusted using -geometry and -gravity
settings

  convert 1.jpg \( -density 150 -background none 1.svg \) \
          -gravity center -composite   1composite.jpg

I have not downloaded your images, but tests on my own images shows that
these techniques work. I am currently trying to add to IM examples (see
below) to demonstrate these options.

For other hints on handling SVG see..
IM Examples Drawing...
  IM and SVG handling
     http://imagemagick.org/Usage/draw/#svg


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
        Backup is irrelevant, your C drive will be assimilated
 -----------------------------------------------------------------------------
     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

Reply via email to