Make SIXEL color graphics supported by some terminal emulators(DECTerm/RLogin/mlterm/tanasinn/xterm)
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' -t ALPHATHRESHOLD, --alpha-threshold=ALPHATHRESHOLD Alpha threshold for PNG-to-SIXEL image conversion -c, --chromakey Enable auto chroma key processing
Code Example
import sixel
writer = sixel.SixelWriter()
writer.draw('test.png')
Dependency
Python imageloader module https://pypi.python.org/pypi/imageloader
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file PySixel-0.0.8.tar.gz.
File metadata
- Download URL: PySixel-0.0.8.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6986ca5650c6b571b75bdf87fbac09d50c00d8497a19d78d3b39dfcdf1397d9
|
|
| MD5 |
466a7b4987f9c449df24f1efa76d7cbd
|
|
| BLAKE2b-256 |
031f1a3d2610c76b9123de943ed3edc48340c29b10ceeca5ed3d425fb652206d
|
File details
Details for the file PySixel-0.0.8-py2.7.egg.
File metadata
- Download URL: PySixel-0.0.8-py2.7.egg
- Upload date:
- Size: 14.1 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6cfd184e901925b4f86f307488dde519529ddbf5cfec67e3686ff059bb3ea7a
|
|
| MD5 |
608a938322c7ae9656c5272175245b4f
|
|
| BLAKE2b-256 |
a46f4b5170aca859bfabda08e473a94ca62cfe6932612ef879f9bb3a93be74fd
|
File details
Details for the file PySixel-0.0.8-py2.6.egg.
File metadata
- Download URL: PySixel-0.0.8-py2.6.egg
- Upload date:
- Size: 14.0 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2cccff966fd1d7169d52527b12ba94fecef392e690a4dd01c934e4eed601790
|
|
| MD5 |
2be9516c06a105233c707f2055ff5366
|
|
| BLAKE2b-256 |
1830adf5eba33a400da9617531690d7e42df520c371cca79bc29e5c8b02bfe38
|