This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 11417 - errata: define pixel interpolation when scaling
Summary: errata: define pixel interpolation when scaling
Status: NEW
Alias: None
Product: SVG
Classification: Unclassified
Component: Rendering Model (show other bugs)
Version: SVG 1.1 Full
Hardware: All All
: P2 normal
Target Milestone: Test Suite
Assignee: Doug Schepers
QA Contact: SVG Public List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-27 10:06 UTC by j.chetwynd
Modified: 2010-11-27 10:36 UTC (History)
0 users

See Also:


Attachments
javascript testcase (1.32 KB, image/svg+xml)
2010-11-27 10:10 UTC, j.chetwynd
Details
webkit-mozilla-opera screengrab (59.83 KB, image/tiff)
2010-11-27 10:11 UTC, j.chetwynd
Details

Description j.chetwynd 2010-11-27 10:06:15 UTC
when pixels are defined, and the display is rendered at an alternative scale, it is vital that interpolation is accurate.

in the attached example, which is simple to understand but not a reduced testcase,

a gradient matrix is interpolated using lerp, pixel by pixel, across a defined width and height.

in this instance for simlicity, the root is deliberately set as a percentage, however zooming would also have a similar effect.

currently all though there is variation, Opera, Mozilla and Webkit nightlies all display significant artefacts.

interpolation does take processing, and it may be that authors will need to consider this, none the less the browser should not introduce artefacts.
Comment 1 j.chetwynd 2010-11-27 10:10:12 UTC
Created attachment 935 [details]
javascript testcase
Comment 2 j.chetwynd 2010-11-27 10:11:14 UTC
Created attachment 936 [details]
webkit-mozilla-opera screengrab