thermalprinter image_to_bytes from the Thermal-Printer-Library Here is the circuit schema surrounded by the thermal head datasheet