Re: [Doc-SIG] Undocumented modules
various posters wrote:
Um, missing color systems like CMYK (which of course are nearly impossible to do), but also is part of the concept of imaging a'la PIL it seems, so awefully incomplete without the ability to do transformations in the color system (histograms, etc).
Its main use would be in dialogs (allow users to specify colors in hls or whatever), and possibly to build conversion arrays, but I'm not sure whether it is used by anyone anymore.
PIL's not really a replacement for colorsys, since PIL doesn't contain any code to deal with non-trivial colour spaces. On the other hand, the code in colorsys.py is not very useful, since it doesn't define what RGB or YUV/YIQ space it uses for it's coefficients (looks like it's using NTSC values, which is used by about 0% of all computer systems these days...) I vote for a removal. (by the way, the initial comment is really confusing; the person who wrote that probably didn't know that "XYZ" is the name of an existing, and very important colour space. I almost submitted a bug report before I realized what that comment was supposed to mean... ;-) Cheers /F fredrik@pythonware.com http://www.pythonware.com
Fredrik Lundh writes:
(by the way, the initial comment is really confusing; the person who wrote that probably didn't know that "XYZ" is the name of an existing, and very important colour space. I almost submitted a bug report before I realized what that comment was supposed to mean... ;-)
Misleading comments are bugs. Please describe the specific confusion (and how to avoid it!) so this can be fixed. I don't know enough about color spaces to just figure it out. -Fred -- Fred L. Drake, Jr. <fdrake@acm.org> Corporation for National Research Initiatives 1895 Preston White Dr. Reston, VA 20191
participants (2)
-
Fred L. Drake -
Fredrik Lundh