I'm new to ImageMagick, but so far my experience of using it has been good. I'm currently using the command line tools (version 6.2.8) in a shell script to graph data using gnuplot (and output in SVG format), and then patch a background (png) onto it using imagemagick. Sounds easy!
I'd like to use SVG because in the output image looks much better as opposed to converting SVG->PNG, and overlaying. I tried this, but the results are too blocky.
So, anyway, here's images ...
SVG image
PNG underlay
In the SVG, I have a background polygon set to transparent ...
Code: Select all
<polygon opacity="0"
Code: Select all
convert underlay.png radarline.svg -composite outtest.png
Code: Select all
convert radarline.svg -bordercolor white -border 1x1 -matte -fill none -fuzz 0% -draw 'matte 1,1 replace' -shave 1x1 -quality 100 -density 300 -resize 567x567 radarline_new.png
convert radarline6.png -fuzz 100% -fill white -opaque "rgb(34,63,140)" radarline-new.png
convert underlay_export.png radarline-new.png -composite -quality 100 -density 300 -resize 567x567 radar_final.jpg
So, does anybody have any suggestions about how to either get IM to recognise the transparency in the SVG file, or to suggest a work around?
Thanks for your help.
Andy