<?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>20956</bug_id>
          
          <creation_ts>2013-02-11 23:19:48 +0000</creation_ts>
          <short_desc>Getting a more formal definition for imageSmoothingEnabled</short_desc>
          <delta_ts>2013-03-04 18:43:49 +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>Windows NT</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jay Munro">jaymunro</reporter>
          <assigned_to name="Jay Munro">jaymunro</assigned_to>
          <cc>jackalmage</cc>
    
    <cc>jmann</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</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>82928</commentid>
    <comment_count>0</comment_count>
    <who name="Jay Munro">jaymunro</who>
    <bug_when>2013-02-11 23:19:48 +0000</bug_when>
    <thetext>With imageSmoothingEnabled checked in, there&apos;s been discussion of improving on the description. This bug is to track that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82929</commentid>
    <comment_count>1</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2013-02-11 23:28:48 +0000</bug_when>
    <thetext>As the canvas property was set up with the same basic use-cases as the CSS property, perhaps just reference one of the values in http://dev.w3.org/csswg/css4-images/#the-image-rendering.  &quot;true&quot; means &quot;image-rendering: auto;&quot;, &quot;false&quot; presumably means &quot;image-rendering: pixelated;&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83677</commentid>
    <comment_count>2</comment_count>
    <who name="Jay Munro">jaymunro</who>
    <bug_when>2013-02-25 21:56:41 +0000</bug_when>
    <thetext>Wouldn&apos;t we be looking at more of a model where false doesn&apos;t attempt any smoothing, rather than a nearest neighbor to create a pixelated image? The way I read the CSS spec, on scaling up, the image gets pixelated, on scaling down, it looks like smoothing = true.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83678</commentid>
    <comment_count>3</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2013-02-25 22:06:35 +0000</bug_when>
    <thetext>There&apos;s no such thing as &quot;doesn&apos;t attempt any smoothing&quot; when scaling down.  You have more colors than you can deal with, and you have to resolve that somehow.

Scaling down, smoothing algorithms are much better than some dumb version of NN.  You don&apos;t have the same problems as when scaling up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83767</commentid>
    <comment_count>4</comment_count>
    <who name="Jatinder Mann [MSFT]">jmann</who>
    <bug_when>2013-02-26 23:18:06 +0000</bug_when>
    <thetext>I recommend using the following normative text:

&quot;If the imageSmoothingEnabled attribute is set to false, the user agent must use nearest-neighbor interpolation when rescaling images drawn by the drawImage() method or rescaling patterns created by the createPattern() method. If the imageSmoothingEnabled attribute is set to true, the user agent may use any filtering algorithm, e.g., bilinear or bicubic filtering.

The imageSmoothingEnabled attribute, on getting, must return the last value it was set to. On setting, it must be set to the new value. When the CanvasRenderingContext2D object is created, the attribute must be set to true.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83953</commentid>
    <comment_count>5</comment_count>
    <who name="Jay Munro">jaymunro</who>
    <bug_when>2013-03-04 18:43:49 +0000</bug_when>
    <thetext>New text added.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>