1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-30 01:58:11 +00:00
trezor-firmware/python/tools/toiftool
2023-10-16 13:51:36 +02:00
..
pyproject.toml build(deps): update poetry env to Python 3.8, update Pillow 2023-10-16 13:51:36 +02:00
README.md feat: toiftool 2023-08-16 12:47:14 +02:00
toiftool.py feat: toiftool 2023-08-16 12:47:14 +02:00

TOIF Tool

A helpful CLI tool to work with TOIFs.

Installation

The command toiftool is available within firmware repository's Poetry shell.

To install the tool separate from the firmware repository, run:

pip install -e .

Displaying TOIFs

To display a TOIF image in a viewer, run:

toiftool show <path/to/toif>

Converting TOIFs

To convert to or from TOIF, run:

toiftool convert <path/to/image.toif> <path/to/output.jpg>
toiftool convert <path/to/image.png> <path/to/output.toif>

The in/out format will be determined by the file extension.

Getting information about TOIFs

To get information about a TOIF, run:

toiftool info <path/to/toif>