Skip to content

Commit 45d1624

Browse files
authored
Add PIL info
1 parent 73a4e73 commit 45d1624

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,18 @@ For these reasons, it is _not_ recommended to instantiate your own models.
190190

191191
## Other Functionalities
192192

193+
### PIL
194+
195+
The `tivars.PIL` package can be used to interface with PIL, the Python Imaging Library. Simply import the package to register codecs for each of the TI image types. You can then open such images directly into a PIL `Image`:
196+
197+
```python
198+
from PIL import Image
199+
from tivars.PIL import *
200+
201+
img = Image.open("Pic1.8ci")
202+
img.show()
203+
```
204+
193205
### Tokenization
194206

195207
Functions to decode and encode strings into tokens can be found in `tivars.tokenizer`. Support currently exists for all models in the 82/83/84 series as well as the TI-73; PR's concerning the sheets themselves should be directed upstream to [TI-Toolkit/tokens](https://github.com/TI-Toolkit/tokens).

0 commit comments

Comments
 (0)