[whatwg] canvas, img, file api and blobs

Anne van Kesteren annevk at opera.com
Mon Feb 15 08:16:43 PST 2010


On Mon, 15 Feb 2010 17:10:30 +0100, Boris Zbarsky <bzbarsky at mit.edu> wrote:
> On 2/15/10 9:43 AM, Stef Epardaud wrote:
>> In a related question, is there any guarantee that when we draw an image
>> with EXIF information into a canvas for resizing, we get (or not) the
>> EXIF back in the resized image (currently via toDataURL())?
>
> You don't.  The canvas is just a bitmap; it has no attached metadata.
>
> This could be changed, but various things would need to be defined about  
> what happens when multiple images are drawn in, when images are drawn on  
> top of other things in the canvas, when stuff is drawn on top of images  
> in the canvas, etc.

Seems easier to take care of this by allowing extraction of metadata (some  
W3C WG is working on this I think) and maybe a way to put it back in...


-- 
Anne van Kesteren
http://annevankesteren.nl/



More information about the whatwg mailing list