Hi all,

I need to generate a particular container as a image in mobile application..

for that i had approached 2 methods..

method1 : using screenshot plugin, i can't able to generate a particular container as a image. 

method2: using html2canvas js, i can able to generate a particular container as a image. But image quality is too bad.. so that i have applied scaling factor as 2, it doesnot make much diiference.

How to generate a image for particular container with high resolution?

need solution ASAP!

Hi,


For non-retina displays the "Scale" property in html2canvas should work, if it is a retina then try this:

https://github.com/cburgmer/rasterizeHTML.js/blob/master/examples/retina.html


Best,

Hermínio