<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>23510</bug_id>
          
          <creation_ts>2013-10-14 21:34:56 +0000</creation_ts>
          <short_desc>&lt;canvas&gt;: Allow EXIF data to be passed to toBlob()</short_desc>
          <delta_ts>2017-07-21 10:29:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Needs Impl Interest</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ian &apos;Hixie&apos; Hickson">ian</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>adrianba</cc>
    
    <cc>annevk</cc>
    
    <cc>hober0</cc>
    
    <cc>ian</cc>
    
    <cc>jackalmage</cc>
    
    <cc>james</cc>
    
    <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

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

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

On Wed, 12 Jun 2013, Alexandre Morgaut wrote:
&gt;
&gt; We have a JS API for that in Wakanda
&gt; http://doc.wakanda.org/Images/Image-Class/meta.303-660131.en.html
&gt;
&gt; It use the saveMeta() meta method to apply potential changes:
&gt; http://doc.wakanda.org/Images/Image-Class/saveMeta.301-661057.en.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109193</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-07-23 00:05:57 +0000</bug_when>
    <thetext>Any interest from vendors other than Mozilla?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128737</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2017-07-21 10:29:17 +0000</bug_when>
    <thetext>If there&apos;s still interest in this, please file an issue at https://github.com/whatwg/html/issues/new.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>