This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23510 - <canvas>: Allow EXIF data to be passed to toBlob()
Summary: <canvas>: Allow EXIF data to be passed to toBlob()
Status: RESOLVED WONTFIX
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other All
: P3 enhancement
Target Milestone: Needs Impl Interest
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-14 21:34 UTC by Ian 'Hixie' Hickson
Modified: 2017-07-21 10:29 UTC (History)
8 users (show)

See Also:


Attachments

Description Ian 'Hixie' Hickson 2013-10-14 21:34:56 UTC
On Fri, 7 Jun 2013, David Flanagan wrote:
>
> I would like to propose the addition of a fourth argument [for
> toBlob()] (for the JPEG case only) that would specify EXIF metadata
> to be included in the JPEG blob. (I have not tried yet, but I'm
> assuming that we could define some suitable JSON serialization
> format for EXIF data. If not, then even allowing a binary blob of
> EXIF data as the fourth argument would be helpful.)
>
> The use case for this feature is image editing applications, like
> the Gallery app on FirefoxOS devices. Whenever that app crops or
> edits a photo it encodes the edited photo with Canvas.toBlob(), and
> the process strips all metadata from the photo. Reading EXIF data
> from a JPEG blob is relatively straightforward can can be done with
> JavaScript, but inserting EXIF data into an existing blob is much
> harder: this is a task that is best done when the JPEG blob is being
> created, which means that it is a feature that belongs in toBlob and
> can not be done efficiently with an external library.

On Fri, 7 Jun 2013, Jonas Sicking wrote:
>
> If someone goes through the work of defining an EXIF <-> JSON mapping
> then this is something I'd be interested to see added to the spec.
>
> It definitely would be nice to enable modifying EXIF metadata without
> having to re-encode the pixel data since that leads to loss of
> quality.

On Wed, 12 Jun 2013, Alexandre Morgaut wrote:
>
> We have a JS API for that in Wakanda
> http://doc.wakanda.org/Images/Image-Class/meta.303-660131.en.html
>
> It use the saveMeta() meta method to apply potential changes:
> http://doc.wakanda.org/Images/Image-Class/saveMeta.301-661057.en.html
Comment 1 Ian 'Hixie' Hickson 2014-07-23 00:05:57 UTC
Any interest from vendors other than Mozilla?
Comment 2 Anne 2017-07-21 10:29:17 UTC
If there's still interest in this, please file an issue at https://github.com/whatwg/html/issues/new.