mion / dither
A small library for converting full-color image to dither image.
Installs: 28
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/mion/dither
Requires
- php: >=7.2
- ext-gd: *
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).