Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Save canvas as jpg to desktop [duplicate]

Tags:

People also ask

How do I save a canvas file as a JPEG?

You can save a canvas to an image file by using the method canvas. toDataURL() , that returns the data URI for the canvas' image data. The method can take two optional parameters canvas.

How do I save a canvas to my desktop?

Locate the video in your Canvas course. Right-click anywhere on the video and select “Save Video As” from the menu that opens. Choose a location to save on your computer and click Save.

How do I capture a picture on a canvas?

If you wish to make the user download the file as it is saved you can do the following: var canvas = document. getElementById("mycanvas"); var image = canvas. toDataURL("image/png").


I am trying to save an image (JPEG) to the desktop from an HTML5canvas. I can open in a new window window.open(canvas.toDataURL('png'), "");, but how can I save it to the desktop? Thanks.