[Public WebGL] Non-passable 1.0.1 conformance test: relying on canvas2D drawImage to not do colorspace conversion

Benoit Jacob [email protected]
Wed Apr 18 14:20:42 PDT 2012


I've just checked in a fix on the development branch (r17499):


This test was non-passable (specifically, runTest2 and runTest3) because it was taking a color-managed PNG image, drew it onto a 2D canvas, obtained the data URL of this canvas, used it as the source for a WebGL texture, and was expecting exact pixel values from this texture. The problem was that even though


was used, it doesn't help with the fact that as soon as the image was drawn onto the 2D canvas, it was colorspace-transformed and the canvas doesn't contain the full information of the original image before colorspace transformation; so there is no hope that the original non-colorspace-transformed image could be obtained exactly from the 2D canvas.

The question is what can we do about 1.0.1?
 - I assume that we don't want any tweaks anymore in 1.0.1?
 - could be make a Or call that 1.0.2 and say that the development version is now heading towards 1.1?

Notice that there is another way to fix this bug, without changing any JS code: we could use a non-color-managed version of red-green.png, as found here (courtesy of the libpng maintainer):


This makes the test pass on colorspace-corrected systems without code changes.


You are currently subscribed to [email protected]
To unsubscribe, send an email to [email protected] with
the following command in the body of your email:
unsubscribe public_webgl

More information about the public_webgl mailing list