Hi list,
Before I file a bug report (and since it seems strange that it hasn't been reported already), I though I'd check if I'm missing something:
why in the attached patch isn't the white white? That is, after converting with [pix_grey], white becomes a bit darker. Seems like some factor in the conversion is wrong. Or am I missing something?
Is there any easy workaround?
thanks m.
The same happens with pix_2grey.
If I understand correctly, while pix_grey changes the colorspace, pix_2grey actually computes the color values to convert the image to grey without changing the color space. I had a look at the source code and the weight factors for converting RGB to grey seem correct, they do sum to 256, so it's really strange that white becomes 86% grey........
Matteo Sisti Sette escribió:
Hi list,
Before I file a bug report (and since it seems strange that it hasn't been reported already), I though I'd check if I'm missing something:
why in the attached patch isn't the white white? That is, after converting with [pix_grey], white becomes a bit darker. Seems like some factor in the conversion is wrong. Or am I missing something?
Is there any easy workaround?
thanks m.
Matteo Sisti Sette escribió:
Is there any easy workaround?
Well the workaround (for pix_2grey, not pix_grey) is [pix_contrast] with contrast=1 and saturation=0; I tried it and it works fine.
Comparing the source code of [pix_contrast] with that of [pix_2grey] may perhaps help find what's wrong with pix_2grey?