1. Go to this page and download the library: Download lastguest/pixeler library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lastguest / pixeler example snippets
// Include autoloader
include __DIR__."/vendor/autoload.php";
// Parse options from command line
$opts = array_merge([
'd' => 1, // Dithering mode : 0 = DITHER_NONE, 1 = DITHER_ERROR
'f' => false,
'r' => 1.0, // Resize factor 1.0 = 100%
'w' => 0.75, // Dither treshold weight
], getopt("f:r:w:d:ib"));
// An image file/url is