mion/dither

A small library for converting full-color image to dither image.

Maintainers

Details

github.com/zl/dither-php

Source

Issues

Installs: 28

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/mion/dither

0.0.1 2022-04-18 10:54 UTC

This package is auto-updated.

Last update: 2026-01-18 19:18:03 UTC


README

A small library for converting full-color image to dither image.

Installation

Require the mion/dither package in your composer.json and update your dependencies:

composer require mion/dither

Usage

use Dither\Dither;

$image = imagecreatefrompng('demo.png');

$dither = new Dither;
$dither->setPalette(['#000000', '#FFFFFF', '#00FF00', '#0000FF', '#FF0000', '#FFFF00', '#FF8000']);
$output = $dither->process($image, 800, 600);

About Mion

Mion is a software solutions startup, specialized in integrated enterprise solutions for SMEs established in Guangzhou, China since September 2016.

License

This software is released under The MIT License (MIT).