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.3.tar.gz
(17.0 kB
view details)
Built Distributions
PySixel-0.0.3-py2.7.egg
(9.6 kB
view details)
PySixel-0.0.3-py2.6.egg
(9.6 kB
view details)
File details
Details for the file PySixel-0.0.3.tar.gz
.
File metadata
- Download URL: PySixel-0.0.3.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
c264a9c92f46d50d96b16135de651c42ee3e1726448ffb4d84b88b371127e37d
|
|
MD5 |
cc5e2855976379aa2fc71ca529186dbd
|
|
BLAKE2b-256 |
e9764fc794e84c4ef3b5e75c812cbf5733d242eafb792190a09e06be52e91280
|
File details
Details for the file PySixel-0.0.3-py2.7.egg
.
File metadata
- Download URL: PySixel-0.0.3-py2.7.egg
- Upload date:
- Size: 9.6 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
c8a4690f90d006c01996eac71a9fe48e759741611d16b026bf6acdb722330529
|
|
MD5 |
533aa8cdd6e3a3e475fbf76c53e2b02e
|
|
BLAKE2b-256 |
40870e9b73480e5df66f48d6f2d98717c7cda710eab36520dab52f055a09faa8
|
File details
Details for the file PySixel-0.0.3-py2.6.egg
.
File metadata
- Download URL: PySixel-0.0.3-py2.6.egg
- Upload date:
- Size: 9.6 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e1163710fedd43e192b8094bb7fe6029e0a436dd588a1bc4274aa74268400105
|
|
MD5 |
8d1655f26b9448268728b74745ad7df3
|
|
BLAKE2b-256 |
42dd8b40cbeb4c25bcbbee743cdd53e3f0413dcc34ce725e425fa37e28d2ea08
|