PHPackages                             homelan/dec-sixel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. homelan/dec-sixel

ActiveProject[Image &amp; Media](/categories/media)

homelan/dec-sixel
=================

Provides a class that produces the sixel terminal ouput needed to display a png|jepg|gif image

1.1.0(11mo ago)00MITPHPPHP &gt;=8.2

Since May 20Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/johnhomelan/dec-sixel)[ Packagist](https://packagist.org/packages/homelan/dec-sixel)[ RSS](/packages/homelan-dec-sixel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

SixelConverter
==============

[](#sixelconverter)

PHP Class for reading in image files, and producing the output for a terminal that supports sixel, to display that image.

Install
-------

[](#install)

composer require homelan/dec-sixel

Usage
-----

[](#usage)

There is one class prodvided by the package, which reads in an image file, and produces the sixel escape sequence.

```
    require_once 'vendor/autoload.php';
    use HomeLan\Retro\DEC\Terminal\Gfx\SixelConverter;

    // Create converter instance
    $oConverter = new SixelConverter();

    // Configure converter
    $oConverter->setMaxDimensions(200, 300)  // Set reasonable terminal size
               ->setColorCount(32)           // Use 64 colors for better terminal compatibility
               ->loadImage('some-image.png');

    // Convert and output
    echo "Displaying image in Sixel format:\n";
    echo $oConverter->convertToSixel();

```

Run length encoding is not supported, however it is disabled by default. As it consumes more CPU time, however it saves bendwidth.

```
    require_once 'vendor/autoload.php';
    use HomeLan\Retro\DEC\Terminal\Gfx\SixelConverter;

    // Create converter instance
    $oConverter = new SixelConverter();

    $sImage = file_get_contents(''some-image.png');

    // Configure converter
    $oConverter->setMaxDimensions(200, 300)  // Set reasonable terminal size
               ->setColorCount(32)           // Use 64 colors for better terminal compatibility
               ->enableRunlengthEncoding()   // Enables run length encoding
               ->setImage($sImage);

    // Convert and output
    echo "Displaying image in Sixel format:\n";
    echo $oConverter->convertToSixel();

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance53

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

354d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/87d701f6f965823826d93e0b18d807803974f133130f30c6019b3d069754d3e5?d=identicon)[johnhomelan](/maintainers/johnhomelan)

---

Tags

sixelVT200VT320VT330VT340

### Embed Badge

![Health badge](/badges/homelan-dec-sixel/health.svg)

```
[![Health](https://phpackages.com/badges/homelan-dec-sixel/health.svg)](https://phpackages.com/packages/homelan-dec-sixel)
```

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k22](/packages/bkwld-croppa)[marc1706/fast-image-size

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file.

959.4M20](/packages/marc1706-fast-image-size)[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495225.1k1](/packages/char0n-ffmpeg-php)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
