Is there a Javascript-y way to provide a downloadable link for a Canvas element? How about SVG graphics? And what if you also include a server-side script (not preferred, but if that’s the only way…)?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I have never tried this, but it occurred to me that you might be able to use a data URL to accomplish this. In theory you would use JS to generate the image pixel data needed, then insert that into the
hrefof a link. Not sure that this will work though.Example of a data URL: