I have an image file (jpg, etc.) and some svg drawings (svg tag copied from the site, as Java String). The svg drawing is of the same resolution as the image file. I want to put svg drawings on top of the image and save it as one file.  My approach, of which I'm not proud of, but works, is to:


use Batik's JPEGTranscoder to transcode svg into image with this svg drawings and white background, save this image
put the image with svg drawings on top of my image file by perfoming low level operations on each pixel


I would like to be able to put the svg drawings on top of my image in one step.


Question: PECL extension in Ubuntu 11.10
Answer:  sudo apt-get install php5-intl