<?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>25647</bug_id>
          
          <creation_ts>2014-05-09 21:47:57 +0000</creation_ts>
          <short_desc>ImageBitmap: Have a way to turn an ImageBitmap into a renderable &lt;img&gt; or &lt;canvas&gt; efficiently</short_desc>
          <delta_ts>2016-04-21 14:37:18 +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>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Justin Novosad">junov</assigned_to>
          <cc>d</cc>
    
    <cc>ian</cc>
    
    <cc>junov</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>105598</commentid>
    <comment_count>0</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-05-09 21:47:57 +0000</bug_when>
    <thetext>On Tue, 17 Dec 2013, David Flanagan wrote:
&gt;
&gt; Once a large image is decoded and downsampled into a smaller
&gt; ImageBitmap, the only thing that we can do with that ImageBitmap is to
&gt; copy it into a Canvas, either for display to the end user (as an
&gt; alternative to an &lt;img&gt;) or for re-encoding with Canvas.toBlob() (when
&gt; creating thumbnails for large images). The motivation for this
&gt; downsampling feature is memory use. But having to copy an ImageBitmap
&gt; into a canvas in order to use it immediately doubles the amount of
&gt; memory required. So for this reason, I also want to propose that
&gt; ImageBitmap have a transferToCanvas() method akin to the
&gt; transferToImageBitmap() and transferToImage() methods proposed at
&gt; http://wiki.whatwg.org/wiki/WorkerCanvas.  transferToCanvas would
&gt; transfer the image data into a new Canvas object and would neuter the
&gt; ImageBitmap so that it could no longer be used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125808</commentid>
    <comment_count>1</comment_count>
    <who name="Justin Novosad">junov</who>
    <bug_when>2016-04-11 20:20:55 +0000</bug_when>
    <thetext>WIP: https://github.com/whatwg/html/pull/1028</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125811</commentid>
    <comment_count>2</comment_count>
    <who name="Domenic Denicola">d</who>
    <bug_when>2016-04-11 21:14:20 +0000</bug_when>
    <thetext>Note that https://github.com/whatwg/html/pull/1028 covers the transfer-to-canvas case. That is probably enough for most situations. https://www.w3.org/Bugs/Public/show_bug.cgi?id=23502 talks a bit about the img case, although that API is more likely to be copying than transferring.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>