|
From: Robert K. <rob...@gm...> - 2010-08-26 21:15:18
|
On 8/26/10 3:26 PM, Fernando Perez wrote: > On Thu, Aug 26, 2010 at 11:39 AM, Eric Firing<ef...@ha...> wrote: >> It's not trivial. This might help: >> >> http://www.littlecms.com/ >> >> See the tutorial for some nice background info. > > And this could be a good start for a python-based workflow: > > http://www.cazabon.com/pyCMS/ > > *if* it works (it looks old, so it may have bit-rotted in the meantime). > > Another option would be to ctypes-wrap the calls of littleCMS one > needs just for this and be done with it. Not very elegant, but it > might get the OP out of a bind with minimal work, and he'd have a > little eps2cmyk.py script he could run on his MPL-generated EPS files > for colorspace conversion. Just an afternoon hack. :) You can also use my numpy-aware wrappers: http://www.enthought.com/~rkern/cgi-bin/hgwebdir.cgi/lcms/ -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco |