function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Anjali RAnjali R 

How to render a html page as Image

I have a html page where user performs some operation ( similar to paint . user can draw on the page. This is not done using canvas).
It has a save button. Currently on clicking save button this html page is generated as pdf. 
The change I need is on clicking Save button, instead of a pdf the html page should be rendered as an Image.
Could you please suggest any solution.
I'm not aware of any way to render a web page as an image - there are a number of tools out there to capture an image from a web page, but they tend to be command line driven or (like fireshot) require the user to take some action to capture the image. All of the automated tools that I know of (like are server side components that must be installed into the web server, but you can't do that in Salesforce.  I suspect if this is possible in any way, you'll have to use a third party service, but you'll probably have to pass that session information etc so that it can pull the HTML page directly.