Join GitHub today
Fix srgb/linear conversion filters. #3240
I made a very silly mistake in the srgb/linear conversion filters of swapping c1 and c2 (see the patch). The mistake was symetrical so it passed the tests, but the filter ended up merely quantifying the input color space into 256/13 values which isn't very useful and makes most color matrix filter applied in linear space totally wrong (as soon as the resulting colors fall out of the 0..256/13 range).
So here is the fix. I was going to introduce the