thoughtbot/bourbon — pull request #102 by cjcsuhta (2012-06-13 18:08:19+00:00)
Title: Mixin for image-rendering

This commit adds a mixin for including `image-rendering` properties and values. The [MDN article][mdn] was my core reference for this mixin.

[mdn]: https://developer.mozilla.org/en/CSS/image-rendering

By default, all browsers use bilinear/bicubic image scaling. An additional property value has emerged that allows using the nearest-neighbor algorithm instead, almost specifically for preserving sharp edges in pixel art. The mixin mainly assist in specifying the different names each vendor has chosen for the nearest-neighbor algorithm.

Safari actually has a third, strange algorithm for `optimizeSpeed` which is being replaced in the Webkit nighties by nearest-neighbor. The mixin assumes that if you are requesting the new nearest-neightbor algorithm where implemented if you specify `optimizeSpeed`.

MSIE uses the name `-ms-interpolation-mode` instead of `image-rendering`. This may or may not fall under your exclusion of Internet Explorer filters.