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(1y ago)00MITPHPPHP &gt;=8.2

Since May 20Pushed 1y 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 today

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

28

—

LowBetter than 52% of packages

Maintenance46

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity52

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

410d 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

[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

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