skip to navigation
skip to content

Not Logged In

PySixel 0.0.9

Make SIXEL color graphics supported by some terminal emulators(DECTerm/RLogin/mlterm/tanasinn/xterm)

Latest Version: 0.1.9

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

 
File Type Py Version Uploaded on Size
PySixel-0.0.9-py2.6.egg (md5) Python Egg 2.6 2013-08-14 13KB
PySixel-0.0.9-py2.7.egg (md5) Python Egg 2.7 2013-08-14 13KB
PySixel-0.0.9.tar.gz (md5) Source 2013-08-14 17KB
  • Downloads (All Versions):
  • 152 downloads in the last day
  • 947 downloads in the last week
  • 4800 downloads in the last month