converting file formats to txt

Fredrik Lundh fredrik at pythonware.com
Tue Jul 4 03:16:53 EDT 2006


Marc 'BlackJack' Rintsch wrote:

> What do you mean by 'fileformats'?  A script that automagically converts
> *anything* to text?  What about pictures?

that's a one-and-a-half-liner:

    import Image, sys; print list(Image.open(sys.argv[1]).getdata())

</F> 






More information about the Python-list mailing list