[issue45775] Implementation of colorsys.rgb_to_yuv and vice versa
STINNER Victor
report at bugs.python.org
Thu Nov 18 11:01:27 EST 2021
STINNER Victor <vstinner at python.org> added the comment:
The GIMP image editor uses https://gegl.org/babl/ which supports tons of formats and supports color spaces, ICC profiles, etc.
I would also prefer to keep colorsys simple and so not support ICC profiles for example.
YUV is a common color encoding system. It's used by the JPEG image format and MPEG video format for example.
https://en.wikipedia.org/wiki/YUV
In terms of complexity and maintenance burden, supporting YUV (PR 29512) sounds reasonable me.
If colorsys is limited to RGB/HLS/HSV, I'm not sure if it is useful. Nowadays, there are more color formats which are getting popular. If they are not supported, maybe it's better to just remove the module. I don't know.
Well, I don't have a strong opinion on adding YUV support or not.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45775>
_______________________________________
More information about the Python-bugs-list
mailing list