[Bug 15041] Clarify dimensions of image returned by Canvas toDataURL

https://www.w3.org/Bugs/Public/show_bug.cgi?id=15041

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

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

--- Comment #1 from Tab Atkins Jr. <jackalmage@gmail.com> 2011-12-02 16:30:18 UTC ---
I disagree that toDataURL should have the same behavior as getImageData here.

getImageData is sensitive to the backing-store resolution, and importantly,
will correctly round-trip an image.

toDataURL should be producing an image identical to what's displayed in the
canvas.  If it produces an image with one image pixel = one backing store
pixel, then it won't roundtrip through canvas, which your spec quote implies
should happen.

toDataURL, thus, should use screen pixels, not backing store pixels.

If an output format support sub-pixel information, then sure, include it.  But
for formats like JPEG and PNG, it shouldn't.

-- 
Configure bugmail: https://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 Friday, 2 December 2011 16:30:26 UTC