tsayen / dom-to-image

Generates an image from a DOM node using HTML5 canvas
Other
10.23k stars 1.68k forks source link

images are creating for iOS but image of DOM is not adding in image. image I have added in background as well as in img tag of html. #294

Open kumarmanishc opened 5 years ago

kumarmanishc commented 5 years ago

I am using ionic Cordova and trying to create image from DOM the code is working So images are generating for Android and iOS but in iOS image inside HTML is not getting imported in image generated by dom-to-image

alexxlagutin commented 4 years ago

Faced the same problem Have you got any solution?

kumarmanishc commented 4 years ago

Faced the same problem Have you got any solution?

Yes I have used platform specific library to solve my problem. For Android I have used dom-to-image For iOS html2canvas please check following link https://www.npmjs.com/package/html2canvas.

liyiang0402 commented 4 years ago

You could merge the background image and generated image with canvas