Hi, I'm currently working on Python bindings for liblcms using ctypes as I've outlined sometimes in the past (June, July) already. Actually, it's quite easy. The main bindings are all generated using Thomas Heller's code generator for ctypes in ctypeslib.
So far I've got a generated wrapper working, that can already do all the stuff the official bindings can do. Although this has not been tested extensively. But previously unavailable bindings e. g. for float values of colour values, etc. are now also easily possible. Still need to do some things, but mainly to make things "nicer". The way it is currently structured: * _lcms.py (generated module with all bindings) * c_lcms.py (module to take some cleanups to make the bindings more Pythonic) * lcms.py (could also be called differently. But this is for an OO wrapped API that is to ease the use of LittleCMS under Python) Things still to do: * split up the code generation into three sub-modules: * LCMS base (API basics as version, ...; constants; flags for colour space type, rendering intent, ...) * LCMS types * LCMS functions Well, if anybody is interested. Give me a shout. The stuff is usable already, however the Python API and the module arrangement will still fluctuate a bit. One of the questions I'm having now is this: Where to host the code? Should it go into the original LittleCMS CVS repository, or somewhere else? Oh, and it works nicely together with numpy. I think Frédéric asked about that. So interaction with PIL images should be also quite easily done. Guy -- Guy K. Kloss Institute of Information and Mathematical Sciences Te Kura Pūtaiao o Mōhiohio me Pāngarau Room 2.63, Quad Block A Building Massey University, Auckland, Albany Private Bag 102 904, North Shore Mail Centre voice: +64 9 414-0800 ext. 9585 fax: +64 9 441-8181 eMail: [EMAIL PROTECTED] http://www.massey.ac.nz/~gkloss/
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Lcms-user mailing list Lcms-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lcms-user