Skip to main content

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

Reference

Project details


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.9.tar.gz (18.2 kB view details)

Uploaded Source

Built Distributions

PySixel-0.0.9-py2.7.egg (14.1 kB view details)

Uploaded Egg

PySixel-0.0.9-py2.6.egg (14.0 kB view details)

Uploaded Egg

File details

Details for the file PySixel-0.0.9.tar.gz.

File metadata

  • Download URL: PySixel-0.0.9.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PySixel-0.0.9.tar.gz
Algorithm Hash digest
SHA256 f4b55bb5ee154a620d640f90308226a026ee312e74d6698ba45439c9355d7398
MD5 55b887d0b3b24e6c074c7fd3f55b9cff
BLAKE2b-256 29670afc897fb4026fc047b91ebed2d41d60d2fea8da05e0074dd521b8fa6cb0

See more details on using hashes here.

File details

Details for the file PySixel-0.0.9-py2.7.egg.

File metadata

  • Download URL: PySixel-0.0.9-py2.7.egg
  • Upload date:
  • Size: 14.1 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PySixel-0.0.9-py2.7.egg
Algorithm Hash digest
SHA256 009aa614a3ecc3314abc281686196182bb9f1246333530c79be441c9d6c45b6b
MD5 1bcdf15f56a74d4b157c6fbdc48880b0
BLAKE2b-256 bcf5555906fd47f4fe80ee5ee350982b080cbf1d702f295b588dbb10b08d9a49

See more details on using hashes here.

File details

Details for the file PySixel-0.0.9-py2.6.egg.

File metadata

  • Download URL: PySixel-0.0.9-py2.6.egg
  • Upload date:
  • Size: 14.0 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PySixel-0.0.9-py2.6.egg
Algorithm Hash digest
SHA256 95187b3f7319ca06a4d5888bf182e8a9e4f5ddff87b66d91656f7ada62f7b919
MD5 a8b1b15acc6fa28d643520673938fc4d
BLAKE2b-256 8f2ce7e8192f05888cacf80703df6ec72cb466103093f6ad4bc08d6f5f38f978

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page