<?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>18783</bug_id>
          
          <creation_ts>2012-09-05 19:42:09 +0000</creation_ts>
          <short_desc>imageSmothingEnabled should not be associated strictly with image scaling</short_desc>
          <delta_ts>2013-02-04 20:58:02 +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>http://www.whatwg.org/specs/web-apps/current-work/#image-smoothing</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <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>73256</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-09-05 19:42:09 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html
Multipage: http://www.whatwg.org/C#image-smoothing
Complete: http://www.whatwg.org/c#image-smoothing

Comment:
imageSmothingEnabled should not be associated strictly with image scaling

Posted from: 2620:0:100c:0:cd41:eadb:836c:786d by junov@chromium.org
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.83 Safari/537.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73257</commentid>
    <comment_count>1</comment_count>
    <who name="Justin Novosad">junov</who>
    <bug_when>2012-09-05 19:49:42 +0000</bug_when>
    <thetext>From the current description of imageSmoothingEnabled:
Returns whether pattern fills and the drawImage() method will attempt to smooth images if they have to rescale them (as opposed to just rendering the images with &quot;big pixels&quot;

The term &quot;rescale&quot; should probably be replaced with &quot;resampled&quot;.  Image smoothing is pertinent for for rotations, sub-pixel translations, and other transforms.  Basically any type of transform that is not pixel-aligned.
Also, the comment in parenthis assumes magnification. Perhaps it should be more general: &quot;as opposed to nearest neighbour filtering&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78005</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-11-07 19:32:00 +0000</bug_when>
    <thetext>Justin: The text in question here is non-normative and is intended for authors who may not be graphics experts. Do you still think it should be changed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78029</commentid>
    <comment_count>3</comment_count>
    <who name="Justin Novosad">junov</who>
    <bug_when>2012-11-08 03:41:33 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Justin: The text in question here is non-normative and is intended for
&gt; authors who may not be graphics experts. Do you still think it should be
&gt; changed?

I get your point. &quot;resample&quot; is a little too expert-ish. Nonetheless, the current text falsely suggests that smoothing is strictly related to scale. Even though it is non-normative, the description could be more accurate. I agree that the most prevalent use case for this feature is likely to be the &quot;big pixel&quot; look, but there is more to it than that.

Here is an alternate suggestion which I think would be clear to non graphics experts, but at the same time gives accurate information to implementors and to authors who are graphics experts:
Returns whether pattern fills and the drawImage() method will attempt to smooth images in cases where source image pixels don&apos;t line up one-for-one with canvas pixels. (as opposed to, for example, rendering enlarged images with &quot;big pixels&quot;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82544</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-02-04 20:57:47 +0000</bug_when>
    <thetext>I&apos;ve tried to make the text clearer, and dropped the mention of &quot;big pixels&quot;. Let me know (and reopen this bug) if the text is inadequate now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82545</commentid>
    <comment_count>5</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-02-04 20:58:02 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7691.
Check-in comment: Precision in the non-normative text. Hopefully people still understand what it means.
http://html5.org/tools/web-apps-tracker?from=7690&amp;to=7691</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>