Overlay a SVG image on top of a png image
Posted: 2013-06-24T14:50:12-07:00
Hello
Im trying to convert a pdf file to a png and then place a svg image on top of the png.
The svg contains a white background which I would like it to be transparent when placing over the png. Can someone please help me accomplish this.
I know that (in php)
exec('convert /file/filepdf.pdf /file/filepng.png');
converts the file to a png and I tried adding the following command to it to make it overlay the svg but it doesnt seem to work
exec('convert /file/filepdf.pdf /file/filepng.png -composite /file/svgfile.svg'); hoping this will place the svg file above the converted png but no luck.
Any suggestions on how i can accomplish this?
Im trying to convert a pdf file to a png and then place a svg image on top of the png.
The svg contains a white background which I would like it to be transparent when placing over the png. Can someone please help me accomplish this.
I know that (in php)
exec('convert /file/filepdf.pdf /file/filepng.png');
converts the file to a png and I tried adding the following command to it to make it overlay the svg but it doesnt seem to work
exec('convert /file/filepdf.pdf /file/filepng.png -composite /file/svgfile.svg'); hoping this will place the svg file above the converted png but no luck.
Any suggestions on how i can accomplish this?