Make SIXEL color graphics supported by some terminal emulators(RLogin/mlterm/tanasinn)
Project description
Install
via github
$ git clone https://github.com/saitoha/PySixel.git $ cd pysixel $ python setup.py install
or via pip
$ pip install PySixel
Usage
Command line tool:
$ sixelconv [options] filename
or
$ cat filename | sixelconv [options]
Options:
-h, --help show this help message and exit -8, --8bit-mode Generate a sixel image for 8bit terminal or printer -7, --7bit-mode Generate a sixel image for 7bit terminal or printer -r, --relative-position Treat specified position as relative one -a, --absolute-position Treat specified position as absolute one -x LEFT, --left=LEFT Left position in cell size, or pixel size with unit 'px' -y TOP, --top=TOP Top position in cell size, or pixel size with unit 'px' -w WIDTH, --width=WIDTH Width in cell size, or pixel size with unit 'px' -e HEIGHT, --height=HEIGHT Height in cell size, or pixel size with unit 'px'
Code Example
import sixel writer = sixel.SixelWriter() writer.draw('test.png')
Dependency
Python Imaging Library (PIL) http://www.pythonware.com/products/pil/
Reference
Chris_F_Chiesa, 1990 : All About SIXELs ftp://ftp.cs.utk.edu/pub/shuford/terminal/all_about_sixels.txt
Netpbm http://netpbm.sourceforge.net/
It includes ppmtosixel command http://netpbm.sourceforge.net/doc/ppmtosixel.html
vt100.net http://vt100.net/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PySixel-0.0.2.tar.gz
(17.0 kB
view details)
Built Distributions
PySixel-0.0.2-py2.7.egg
(9.6 kB
view details)
PySixel-0.0.2-py2.6.egg
(9.6 kB
view details)
File details
Details for the file PySixel-0.0.2.tar.gz
.
File metadata
- Download URL: PySixel-0.0.2.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
28584a181ac9ac5fb30b45edaa9e9bd6a788c5a739711deadebe1192c113888a
|
|
MD5 |
a177634a11627a409e97b772d607497f
|
|
BLAKE2b-256 |
bdb01a00c26a3acd3959b3a5947c14ac0f21ecc0f89e9ea5a78b5a9a65623716
|
File details
Details for the file PySixel-0.0.2-py2.7.egg
.
File metadata
- Download URL: PySixel-0.0.2-py2.7.egg
- Upload date:
- Size: 9.6 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
287fdadf730289e94bdb79bdf4a0a6b40f026d54bbdeb754515e76d68259dd10
|
|
MD5 |
915d88dc5c21bb8e34a0e05adc513b3c
|
|
BLAKE2b-256 |
af7d0964894bd8f23248818d1d9cf81680cc30f877e2a0ff17f0b754e2e2a421
|
File details
Details for the file PySixel-0.0.2-py2.6.egg
.
File metadata
- Download URL: PySixel-0.0.2-py2.6.egg
- Upload date:
- Size: 9.6 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
3c2ccbfb396b5a32e31f766b3f952999351d6c973812d8b5eee806910ce30a7d
|
|
MD5 |
a2119781d322df7f8f366fb0d1efbcd1
|
|
BLAKE2b-256 |
d32dd5a849007fb948e30c8173235f870fd978f7c72feefc088ac6c036aea39e
|