W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > September 2010

[Bug 10787] I don't see a way to save the canvas data as a BMP or JPEG or anything else that can then be uploaded via a FORM to a web server. This is a requirement, I woudl think.

From: <bugzilla@jessica.w3.org>
Date: Tue, 28 Sep 2010 06:29:36 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1P0Th2-00042t-Kz@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=10787

Tab Atkins Jr. <jackalmage@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jackalmage@gmail.com

--- Comment #1 from Tab Atkins Jr. <jackalmage@gmail.com> 2010-09-28 06:29:36 UTC ---
Check out the toDataURL() function.  It saves the canvas data as a PNG by
default, though implementations may offer the ability to save it in other
formats such as JPEG or BMP.

You can stuff this data in a form the obvious way, and decode it into an actual
image file on the server easily.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 28 September 2010 06:29:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:01:25 UTC