Tool ImageMagick https://imagemagick.org/script/download.php Convert to PNG8 magick source.png +dither -colors 256 PNG8:out.png