Jump to content
Sign in to follow this  
TonyC

Save HTML5 Canvas to my user's drive w/ current file format and quality

Recommended Posts

I should specify in advance "Using pure JavaScript: I'm working on bare-bones HTML5 / CSS3 / JavaScript image editor and I'm ready to add a fileSave function. I'm going to use toDataURL() to allow the user to

(1) save the file with a new JPG quality setting, or

(2) save the file to PNG (I'm not aware of any options for PNG), or

(3) save the current file format (typically JPG) and current quality setting.

This last option will basically be the same thing as "right click" and "save file", but I would prefer something that will work from a button.

How would I go about doing this? A code sample would definitely be helpful 

Thank you 

Edited by TonyC

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...