Combine 2 images, save as 1


Is it possible to combine 2 images and then save the combined image as 1 image. So let’s say I have a picture and I want to put another picture on top of it … let’s say a little smiley picture. Then save the 2 images as 1 image.

Is it possible with Ionic?


you could combine images in a canvas element.
Then you can get the result as base64.

But than you have to convert the base64 string to blob or byte-representation and there i have no glue… how to do this without any hacks.

okay there is a method .toBlob --> maybe you can write the result to the phone via cordova file


Hi bengtler,

can you give a little simple example?