Re: additional value for image-rendering

Hi Robert.

Robert Longson:
> I would like to propose an additional value for
> http://www.w3.org/TR/SVG11/painting.html#ImageRenderingProperty
> 
> disableResampling - The user agent shall use nearest neighbor resampling
> only.
> 
> Perhaps this isn't the best name for it - disableSmoothing or
> disableFiltering anyone. There is a demand e.g. in
> https://bugzilla.mozilla.org/show_bug.cgi?id=423756 to turn off bilinear
> filtering and optimizeSpeed isn't guaranteed to do that.

Sounds like a reasonable thing to want.  I was going to point out that
setting ‘image-rendering’ doesn’t guarantee anything in particular, but
looking at the current wording it does make some requirements on
resampling algorithms to be used (unlike ‘text-rendering’, which really
is just a hint.)

(Aside: optimizeQuality, for example, says that “a resampling algorithm
at least as good as bilinear resampling” must be used, but I don’t know
what objective is being measured to determine what “as good as” means.)

I agree disableResampling isn’t the best name; there’s resampling
happening, just in a different way.  Other suggestions:

  crispEdges (like on ‘shape-rendering’)
  noInterpolation
  nearestNeighbor
  pointSampling

-- 
Cameron McCormack ≝ http://mcc.id.au/

Received on Sunday, 22 March 2009 09:57:22 UTC