Overlay SVG image onto JPEG (watermark)
Posted: 2013-08-30T02:04:19-07:00
I would like to overlay an SVG image on top of a raster image so that the SVG image's width is 20% of the raster image's width and is placed 10% in from the bottom left edge of the image.
I've tried the following command, but it doesn't seem to affect the size or offset of the SVG at all, plus the SVG is rendered with a white background rather than being transparent:
You can see the result image here: http://www.iliveinabin.com/ImageMagick- ... marked.jpg
Made from this SVG: http://www.iliveinabin.com/ImageMagick- ... ermark.svg
And this photo: http://www.iliveinabin.com/ImageMagick- ... /photo.jpg
I realise I can get the end result I'm looking for by using a PNG and pixel values for the geometry, but ideally I'd like to get the more flexible solution using an SVG working.
Thanks
Dave
I've tried the following command, but it doesn't seem to affect the size or offset of the SVG at all, plus the SVG is rendered with a white background rather than being transparent:
Code: Select all
composite -compose atop -geometry "20%+10%" -gravity southwest watermark.svg photo.jpg photo-watermarked.jpg
Made from this SVG: http://www.iliveinabin.com/ImageMagick- ... ermark.svg
And this photo: http://www.iliveinabin.com/ImageMagick- ... /photo.jpg
I realise I can get the end result I'm looking for by using a PNG and pixel values for the geometry, but ideally I'd like to get the more flexible solution using an SVG working.
Thanks
Dave