Skip to content

Tag: png

Overlay of two images with transparency

I’m looking for a solution in Javascript maybe to create a real-time preview of products based on multiple options that a consumer could choose from multiple radiobutton. Exemple : I have a face.png and a hat.png with transparents parts, and a cap, and when I click on cap, I would like to display the image of the cap + the

Load SVG into canvas to get base64 dataurl

I have this SVG in my html : the symbol pointed by the “use” tag is : This display correctly when the page load (ie. it is using the symbol that I refer to using use tag). I want to take this SVG and get the base64 dataurl (convert it to an image). I tried to use this code without