<?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>25646</bug_id>
          
          <creation_ts>2014-05-09 21:41:39 +0000</creation_ts>
          <short_desc>ImageBitmap objects should expose original dimensions</short_desc>
          <delta_ts>2016-03-16 17:51:20 +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>PC</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>annevk</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>105594</commentid>
    <comment_count>0</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-05-09 21:41:39 +0000</bug_when>
    <thetext>If you&apos;re using an ImageBitmap to pan and zoom around an original image, it might be helpful to know the original dimensions and what part of the original image you are currently looking at.

Maybe:
     readonly attribute unsigned long originalFullWidth;
     readonly attribute unsigned long originalFullHeight;
     readonly attribute double originalSourceX;
     readonly attribute double originalSourceY;
     readonly attribute double originalSourceWidth;
     readonly attribute double originalSourceHeight;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105596</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-05-09 21:43:04 +0000</bug_when>
    <thetext>Another option, rather than exposing the originalSource* members, is to expose the actual dictionary that was used to configure the object, as passed to the constructor. As in:

   readonly attribute ImageBitmapSettings settings;

...or some such. (Not sure if dictionaries can be exposed in this way.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106187</commentid>
    <comment_count>2</comment_count>
    <who name="Justin Novosad">junov</who>
    <bug_when>2014-05-16 17:20:39 +0000</bug_when>
    <thetext>Do we really need this? Isn&apos;t it trivial to set-up a promise resolve handler that adds these attributes to the ImageBitmap?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106193</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-05-16 19:30:10 +0000</bug_when>
    <thetext>For background, search for &quot;4)&quot; in:

   http://lists.w3.org/Archives/Public/public-whatwg-archive/2014May/0069.html

This would obviously only be a convenience API, yes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125540</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2016-03-16 17:51:20 +0000</bug_when>
    <thetext>Resolving WONTFIX due to lack of implementer interest.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>