matttrent
Gamma Test
This requires a bit of explanation, and unless you are bit of a techie, almost entirely unimportant. This is a test to determine whether Flickr is doing it's image processing (mostly resizing) properly with respect to gamma.
Color spaces of images generally refer to 3 different things: 1) the bounds of the gamut of viewable colors (exactly how red is 0xff0000), 2) the white point or exactly what spectrum do we treat as pure white (usually D65 for a 6500K black body emitter), and a value distribution across that range. Gamma refers to the last one.
Our eyes aren't uniformly sensitive. We can see much more detail at the low end of the intensity range. Roughly this curve looks like X^N for some N. In the case of the sRGB space, which roughly created for normal monitors under normal intensity levels, N = 2.2. Generally, this is a really good thing. We space the values of brightness in the image according to where they will do the most use.
The caviat with working in gamma-corrected spaces is that various maths no longer work right, most notably addition which is needed to resample the images. I'll leave it to those that are interested to see that
(A+B)^2.2 != A^2.2 + B^2.2
and the rest of you can take my word for it.
Now, what does that have to do with this image. Well, to see, you'll have to compare the resampled to the original and notice that the original is exactly twice the size of the Flickr-resampled medium size and is comprised of alternating 1-pixel-wide columns of black and white opposed to the 128 grey of the resized. This is so that when resized, 2 columns will be averaged together into 1 pixel.
Now, assuming that think of 0 as 0 and 255 as 1 (a convenient value for the maximum as image processing does), to do gamma-correct filtering on an sRGB image we do the following:
A = 0^(2.2) // ungamma-corrected black (A=0)
B = 1^(2.2) // ungamma-corrected white (B=1)
C = (A + B)/2 // average colors (0.5)
D = C^(1/2.2) // gamma corrected middle grey
Now, if this in done correctly, D, the pixel in the resized Flickr image should be 186 instead of 128.
What does this all mean? Well, in the grand scheme of things, mostly nothing. Flickr strips color spaces along with all other EXIF data on resize currently, so it is possible they are doing the proper thing and just not recorrecting. But, if that was the case, all the resized images would look substantially darker than the originals. This only deals with the additions to average adjactent pixels when resizing. The less different adjactent pixels, the less the error, and an most photographs it would hardly be noticable on most stuff anyway.
It's pretty uncommon to see any image programs handle this anyway, so this is in no means singling out Flickr. Firefox ignores color spaces all-together. I'm not even sure if Photoshop does everything gamma correct. I'll need to look at the image internals in my own viewer to be sure.
More just curious. Hope you enjoyed this moment of image geekery. Let me know if you have any questions or want to know more.
Gamma Test
This requires a bit of explanation, and unless you are bit of a techie, almost entirely unimportant. This is a test to determine whether Flickr is doing it's image processing (mostly resizing) properly with respect to gamma.
Color spaces of images generally refer to 3 different things: 1) the bounds of the gamut of viewable colors (exactly how red is 0xff0000), 2) the white point or exactly what spectrum do we treat as pure white (usually D65 for a 6500K black body emitter), and a value distribution across that range. Gamma refers to the last one.
Our eyes aren't uniformly sensitive. We can see much more detail at the low end of the intensity range. Roughly this curve looks like X^N for some N. In the case of the sRGB space, which roughly created for normal monitors under normal intensity levels, N = 2.2. Generally, this is a really good thing. We space the values of brightness in the image according to where they will do the most use.
The caviat with working in gamma-corrected spaces is that various maths no longer work right, most notably addition which is needed to resample the images. I'll leave it to those that are interested to see that
(A+B)^2.2 != A^2.2 + B^2.2
and the rest of you can take my word for it.
Now, what does that have to do with this image. Well, to see, you'll have to compare the resampled to the original and notice that the original is exactly twice the size of the Flickr-resampled medium size and is comprised of alternating 1-pixel-wide columns of black and white opposed to the 128 grey of the resized. This is so that when resized, 2 columns will be averaged together into 1 pixel.
Now, assuming that think of 0 as 0 and 255 as 1 (a convenient value for the maximum as image processing does), to do gamma-correct filtering on an sRGB image we do the following:
A = 0^(2.2) // ungamma-corrected black (A=0)
B = 1^(2.2) // ungamma-corrected white (B=1)
C = (A + B)/2 // average colors (0.5)
D = C^(1/2.2) // gamma corrected middle grey
Now, if this in done correctly, D, the pixel in the resized Flickr image should be 186 instead of 128.
What does this all mean? Well, in the grand scheme of things, mostly nothing. Flickr strips color spaces along with all other EXIF data on resize currently, so it is possible they are doing the proper thing and just not recorrecting. But, if that was the case, all the resized images would look substantially darker than the originals. This only deals with the additions to average adjactent pixels when resizing. The less different adjactent pixels, the less the error, and an most photographs it would hardly be noticable on most stuff anyway.
It's pretty uncommon to see any image programs handle this anyway, so this is in no means singling out Flickr. Firefox ignores color spaces all-together. I'm not even sure if Photoshop does everything gamma correct. I'll need to look at the image internals in my own viewer to be sure.
More just curious. Hope you enjoyed this moment of image geekery. Let me know if you have any questions or want to know more.