Dither
Dither image. Dithering will reduce the color to black and white and add noise.
Parameters
type
Dithering algorithm to use. Options: diffusion, ordered. Defaults to diffusion.
Examples
$editor->apply( $image1, Grafika::createFilter( 'Dither', 'diffusion' ) );
$editor->apply( $image2, Grafika::createFilter( 'Dither', 'ordered' ) );
Test image:
Diffusion dithering:
Ordered dithering: