Sorry, we don't support your browser.  Install a modern browser

Dithering image treatment

P

eg:

$image->dither([
  'method' => 'floydsteinberg',
  'colors' => ['#fff', '#000'],
]);
2 years ago

Leaving links to the two underlying libraries Kirby uses and which could be used for implementing this:

https://github.com/claviska/SimpleImage?tab=readme-ov-file#maxcolorsmax-dither

https://imagemagick.org/script/command-line-options.php#dither

a year ago