tratamiento de imagen

Marcos Sánchez Provencio rapto en arrakis.es
Jue Feb 10 22:45:15 CET 2005


¿Te vale esto?
http://www.pythonware.com/library/pil/handbook/decoder.htm

Writing Your Own File Decoder
The Python Imaging Library uses a plug-in model which allows you to add
your own decoders to the library, without any changes to the library
itself. Such plug-ins have names like XxxImagePlugin.py, where Xxx is a
unique format name (usually an abbreviation).

A decoder plug-in should contain a decoder class, based on the ImageFile
base class defined in the module with the same name. This class should
provide an _open method, which reads the file header and sets up at
least the mode and size attributes. To be able to load the file, the
method must also create a list of tile descriptors. The class must be
explicitly registered, via a call to the Image module.


El jue, 10-02-2005 a las 19:52 +0100, Alejandro Moreno López escribió:
> Hola a todos,
> 
> os comento mi problema. Tengo una asignatura en la que el profesor ha
> creado unas especificaciones para un formato de imagen nuevo. El caso
> es que me ha pasado dichas especificaciones para que implemente algo
> que pueda manejar este nuevo formato. Como ya podeis estar imaginando
> se me ocurrió trastear un poco con python, aunque no tengo del todo
> claro como puedo meterme con ello. Se que existe PIL, pero no se hasta
> que punto llega esta libreria.
> 
> En definitiva, la pregunta es: ¿como puedo crearme un nuevo formato de
> imagen con respecto a sus especificaciones? Agradecería todo tipo de
> documentación, links, libros, etc...
> 
> Muchas gracias anticipadamente,
> un saludo.
> _______________________________________________
> Python-es mailing list
> Python-es en aditel.org
> http://listas.aditel.org/listinfo/python-es

------------ próxima parte ------------
_______________________________________________
Python-es mailing list
Python-es en aditel.org
http://listas.aditel.org/listinfo/python-es


Más información sobre la lista de distribución Python-es