bitImage($img1); /* Load with optimisations disabled, forcing the use of PHP to convert the pixels, which uses a threshold and is much slower. */ $img2 = EscposImage::load(__DIR__ . '/../resources/tulips.png', false); $printer->bitImage($img2); $printer->cut(); } finally { /* Always close the printer! */ $printer->close(); }