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.1.tar.gz
(16.9 kB
view details)
Built Distributions
PySixel-0.0.1-py2.7.egg
(9.4 kB
view details)
PySixel-0.0.1-py2.6.egg
(9.4 kB
view details)
File details
Details for the file PySixel-0.0.1.tar.gz
.
File metadata
- Download URL: PySixel-0.0.1.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9d3a9115964b383f6d396fd8c8e148c1c1aafbcc1ae26a60a3ea61d7c6734a64
|
|
MD5 |
54b22907e7cb6addb70e44f412fe50b6
|
|
BLAKE2b-256 |
1fdeb94706c899ee2704ad514b2034de54fb739adea638bd21cb2b32c5583543
|
File details
Details for the file PySixel-0.0.1-py2.7.egg
.
File metadata
- Download URL: PySixel-0.0.1-py2.7.egg
- Upload date:
- Size: 9.4 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
20d6ff113af7f298bfa8a4a62e60c930e5329bbed6a2bf3b1e34d9eeeb048a7d
|
|
MD5 |
6fb68bffb45d67e5781d60656e229873
|
|
BLAKE2b-256 |
5bad781502c8dc724934a59712b512fc5b9683a143fad91f05ff66292974dd86
|
File details
Details for the file PySixel-0.0.1-py2.6.egg
.
File metadata
- Download URL: PySixel-0.0.1-py2.6.egg
- Upload date:
- Size: 9.4 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ae84eb56d91b91dae45dc3795dc310a35a94d85aaeb12e160084f60396c98f07
|
|
MD5 |
a9b8953b547933d62c437d61911853cd
|
|
BLAKE2b-256 |
5925bc79bca11023ab4d046cf2016ba2e04835c460693a3e9863c6844f1fb2db
|