using thermal printer to print image containing two graphs (width is 384pixel wide as it is expected from the printer). Adafruit thermal printer link states that thermal printer can just print binary(monochrome) images. So I converted png image to bmp using zam-zam online vonverter. And used LCD Assitant software to get data values of the image. After this I run the python code to print the image as printertest.py did
from PIL import Image
from Adafruit_Thermal import *
printer = Adafruit_Thermal("/dev/ttyO4", 19200, timeout=5)
import rot as result
printer.printBitmap(result.width, result.height, result.data)
printer.println("Adafruit!")
printer.feed(1)
But nothing got printed, excepts Adafruit line.
When I did print of png image converted to monochrome image by using PIL library, at least I was able to see unclear graph. How can I get clear graph prints from adafruit thermal printer? I really appreciate all your suggestions.
But nothing got printed, excepts Adafruit line.
When I did print of png image converted to monochrome image by using PIL library, at least I was able to see unclear graph. How can I get clear graph prints from adafruit thermal printer? I really appreciate all your suggestions.