Difference between revisions of "Colour Management Tests"

From CDOT Wiki
Jump to: navigation, search
(Project Details)
(Project News)
Line 112: Line 112:
  
 
Got some Goals...and Focus.
 
Got some Goals...and Focus.
 +
 +
- Sept 26/08
 +
 +
Been testing thing for the past few days...trying to get the tests right.

Revision as of 14:48, 26 September 2008

Colour Management Tests

Project Description

Write reftests to compare images. This includes dealing with things like Monitor Profiles, profiles in JPEG (i.e., JPEGs get changed based on colour profile info). See discussion of colour profiles in Firefox 3 here. It would be useful to be able to compare to PNGs with a reftest, perhaps creating an image diff tool, where pixels outside a floating point tolerance (> 0.n) would somehow be highlighted so you can see what is different. Done.

This will require some graphics and image knowledge (i.e., Photoshop, what colour is on a computer, etc).

Project Leader(s)

Ezadkiel Villarico Marbella Project Blog

Project Contributor(s)

Name(s) of people casually working on the project, or who have contributed significant help. Include links to personal pages within wiki

NOTE: only Project Leader(s) should add names here. You can’t add your own name to the Contributor list.

Project Details

REFTEST READ ME

TechNote001: Reftest framework contains image rendering reftests in module/libpr0n/test/reftest inside the mozilla source.

Technote002: about:config and set gfx.color_management.mode to
‘0′ for no color management,
‘1′ for full color management, and
‘2′ (the default) for tagged(with ICC)-only correction

Technote003: What are ways to embed colour profiles into images? Photoshop does it.

Technote004: Create Images with sRGB colour profile embedded.

Technote005: Tricky bit on rendering to get the firefox rendering back as an image.

Technote006: A way to do this Draw the image into a canvas http://developer.mozilla.org/En/Canvas_tutorial:Using_images Then call toDataURL or getPixelData to get the pixels out. It doesn't reverse-colour-correct the data read from canvas methods which is incorrect, but useful. Reftests already give a data URL when the test fails.

toDataURL:

http://cow.neondragon.net/index.php/681-Canvas-Todataurl http://developer.mozilla.org/En/Code_snippets/Canvas

getPixelData:

no information

reftest can compare images now


Technote007: Use URI scheme for reftest DATA URI Scheme Wiki


Techtool001: layout/tools/reftest/reftest-to-html.pl

Techtool002:
URI kitchen URI Encoder

simple to complex.

Testing GOAL001: simple to complex.
For example
(a) colors x000000 and xFFFFFF,
(b) then do the primary colors,
(c) then complimentary colors,
(d) then get into things like alpha values
(e) and color blending.

Focus 001
focus on getting together
various profiles and
various images,
creating tagged and
untagged ones
that should look the same,

and then plugging those into the reftest framework.

Project News

- Sept 19/08

made some builds with --enabled-tests

learning how to make reftests.

reading over notes etc.

- Sept 20/08

made more updates to notes and project page.

- Sept 22/08

Got a response from an email...one step closer to putting these pieces together.

Got some Goals...and Focus.

- Sept 26/08

Been testing thing for the past few days...trying to get the tests right.