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

Uploaded Source

Built Distributions

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

Uploaded Egg

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

Uploaded Egg

File details

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

File metadata

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

File hashes

Hashes for PySixel-0.0.7.tar.gz
Algorithm Hash digest
SHA256 34472e5062aac0ac296c539cbf8d04d1b83ff218305bd2a284113a6bf0598fe6
MD5 3442f174e63d09400cd421e3a4645a26
BLAKE2b-256 6586383207e114620ab231c66d52ca812b3073d39efc881ab886b553b9dc7c7e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for PySixel-0.0.7-py2.7.egg
Algorithm Hash digest
SHA256 538c5b73a08ebfa513693ea9670debfe2d07bee536c7b333a6d0765f2060cc07
MD5 864d6a4bb003b766a0e109c1082f146c
BLAKE2b-256 c900ce0fe4787822a67cbbd416ebf21bd694791a5f0cb791cf6eb5dd68f311be

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for PySixel-0.0.7-py2.6.egg
Algorithm Hash digest
SHA256 adddc0a6139e70af57b26452e85aa53fbc2d62e6ef2a1b45ee1a07bfb3795324
MD5 416a57109ee35f49c3b205b23a1e8668
BLAKE2b-256 2e8e2c029db3ca37f5634ffe6c1013474874ff3c1584adcac08e0ab96a50b9bf

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