Ondrej Beranek napsal(a):
no to fakt nevim co tim mysli.
kraasnej popis RLE komprese je tady:
http://int21h.ic.cz/?id=2
Tu RLE dekompresi bych asi musel implementovat do PIL - image open.
To je mimo mé možnosti.
Chtěl jsem jen pochopit tu poznámku o "bmp_rle"
Musím to nějak obejít
zrejme to 1 bude znamenat ze prostor dat je 8bit (16ti barevne obrazky
kde ve skutecnosti 1 byte obsahuje barvy dve)
L bude 16bit a P bude 32bit.
To je hloubka barev, to je něco jiného.
Děkuji
ZU
mozna
2009/6/11 zu1234 <zu1...@seznam.cz <mailto:zu1...@seznam.cz>>
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