Skip to main content

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

Uploaded Source

Built Distributions

PySixel-0.0.4-py2.7.egg (13.8 kB view details)

Uploaded Egg

PySixel-0.0.4-py2.6.egg (13.7 kB view details)

Uploaded Egg

File details

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

File metadata

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

File hashes

Hashes for PySixel-0.0.4.tar.gz
Algorithm Hash digest
SHA256 68cdbb1ce3fc2508b08f4b3631d5f887a7fa1163c08566f0afe3a9d4c44bb020
MD5 80b9d49d7410fd7c3f690f48dc17b6d1
BLAKE2b-256 195628457c21639369479bada0f9601e6aa9df843ca0c153cd9b721d74675aff

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for PySixel-0.0.4-py2.7.egg
Algorithm Hash digest
SHA256 091f0a3be72d359a5b862b1340dd7a2a26b82984f7f0e16a57e3e3ae181e9bf5
MD5 c0c7c61a5d91b7f30b4f7a3fcc04686d
BLAKE2b-256 7ad1a290c0ed875dc43959ffaafe54be09a191d211a673b8ec7f1a38f542996d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for PySixel-0.0.4-py2.6.egg
Algorithm Hash digest
SHA256 c3eac93e88958f541cc43fd2af5283b33542b6c3b8191189835690f4e9e92a60
MD5 eb8d7cf3663a83f171c2ca08c713a3ca
BLAKE2b-256 b22ddbf1e5cc80e5eae1cc263547dc1f91275bd541996b2a6acb210eeb604169

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