Nechápu následující:
PIL reads and writes Windows and OS/2 BMP files containing "1", "L", "P", or "RGB" data. 16-colour images are read as "P" images. Run-length encoding is not supported.
The open method sets the following info properties:
compression. Set to "bmp_rle" if the file is run-length encoded.

Lze (a jak?), nebo nelze otevřít BMP soubor s RLE kompresí?

Když jsem použil:
im_obr = Image.open(FI_OBR_IN, compression="bmp_rle").convert('RGB')

Tak jsem dostal jsem chybu:
TypeError: open() got an unexpected keyword argument 'compression'

Nebo to lze dekomprimovat předem a jinak?

ZU
_______________________________________________
Python mailing list
Python@py.cz
http://www.py.cz/mailman/listinfo/python

Odpovedet emailem