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

Uploaded Source

Built Distributions

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

Uploaded Egg

PySixel-0.0.5-py2.6.egg (13.8 kB view details)

Uploaded Egg

File details

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

File metadata

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

File hashes

Hashes for PySixel-0.0.5.tar.gz
Algorithm Hash digest
SHA256 75469955619a58294e34bcd902ad71f29d7210e966c81b2f48e0f5d3a6cdee46
MD5 0466824a2dbf49c825e033a72d27999b
BLAKE2b-256 b2c8938aea7c7808457771b7d47685bbce38d4e7cfbce4a09ebfd34c16cb5a62

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for PySixel-0.0.5-py2.7.egg
Algorithm Hash digest
SHA256 e95273fb0ca1ac6891f8b0d8d9b47467b13b064f18a7b07e0d5bd2efff68ec5a
MD5 dcbbf70b5f6d2783d5706d508d6ba2b8
BLAKE2b-256 4786b08fde5217e9eee321c0cac088de35423434be56d3e4ad5347b178824277

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for PySixel-0.0.5-py2.6.egg
Algorithm Hash digest
SHA256 3e0e2ccd05b1ba7d5194109b89d70a33805456f66c9650f6809c2746ceeab550
MD5 8e2a2c6d955ed6fe55c6fe6627d1e10c
BLAKE2b-256 db3f8781288143e46e6f51f4bd464baa2603ce2740e6a30c6c90d7b249ee4c98

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