<?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>19820</bug_id>
          
          <creation_ts>2012-11-01 15:45:39 +0000</creation_ts>
          <short_desc>Description of transformation in drawimage is confusing</short_desc>
          <delta_ts>2013-02-01 07:35:43 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML Canvas 2D Context</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>19818</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="rcabanie">cabanier</reporter>
          <assigned_to name="Jay Munro">jaymunro</assigned_to>
          <cc>eoconnor</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>silviapfeiffer1</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>77681</commentid>
    <comment_count>0</comment_count>
    <who name="rcabanie">cabanier</who>
    <bug_when>2012-11-01 15:45:39 +0000</bug_when>
    <thetext>See: http://www.w3.org/TR/2dcontext/#drawing-images-to-the-canvas

The text for drawImage currently states:
When drawImage() is invoked, the region of the image specified by the source rectangle must be painted on the region of the canvas specified by the destination rectangle, after applying the current transformation matrix to the points of the destination rectangle.

This is a bit confusing since you don&apos;t really apply the transform to the points. Basically, you map the source rect to the destination rect and then transform the destination rectangle.
I believe the spec should also call out that there should be no loss of precision when doing this (i.e. if the destination has half the pixels but scaled by 2, the original pixel should be preserve)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78153</commentid>
    <comment_count>1</comment_count>
    <who name="Jay Munro">jaymunro</who>
    <bug_when>2012-11-09 22:20:56 +0000</bug_when>
    <thetext>
EDITOR&apos;S RESPONSE: 
This is an Editor&apos;s Response to your comment. If
you are satisfied with this response, please change the state of
this bug to CLOSED. If you have additional information and would
like the Editor to reconsider, please reopen this bug. If you would
like to escalate the issue to the full HTML Working Group, please
add the TrackerRequest keyword to this bug, and suggest title and
text for the Tracker Issue; or you may create a Tracker Issue
yourself, if you are able to do so. For more details, see this
document:
       http://dev.w3.org/html5/decision-policy/decision-policy.html

Status:                      
Fixed

Change Description:
https://github.com/w3c/html/commit/01e58cb8b32f92401d891bf2a1614fd7493cbeca

Rationale:
Applying the matrix is not on the points of a rectangle. Also clarified that the original image is not updated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78154</commentid>
    <comment_count>2</comment_count>
    <who name="Edward O&apos;Connor">eoconnor</who>
    <bug_when>2012-11-09 23:15:26 +0000</bug_when>
    <thetext>Have you suggested this change to Ian?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78269</commentid>
    <comment_count>3</comment_count>
    <who name="Jay Munro">jaymunro</who>
    <bug_when>2012-11-13 16:13:40 +0000</bug_when>
    <thetext>No, I thought he was watching our bugs as well. I&apos;d be glad to suggest it. (In reply to comment #2)
&gt; Have you suggested this change to Ian?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82463</commentid>
    <comment_count>4</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2013-02-01 07:35:43 +0000</bug_when>
    <thetext>Note, he made this change:
https://github.com/w3c/html/commit/babafd346a6a54643991f14e8becd307e0d0f272</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>