This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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
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 "big pixels" The term "rescale" should probably be replaced with "resampled". 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: "as opposed to nearest neighbour filtering"
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?
(In reply to comment #2) > 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? I get your point. "resample" 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 "big pixel" 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't line up one-for-one with canvas pixels. (as opposed to, for example, rendering enlarged images with "big pixels")
I've tried to make the text clearer, and dropped the mention of "big pixels". Let me know (and reopen this bug) if the text is inadequate now.
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&to=7691