Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Printing the graph using thermal printer(printing graph image is not clear) #11

Open
ghost opened this issue Apr 7, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 7, 2015

Hello there,
I want to print graph using thermal printer connected to beaglebone black. But printed graph images did not display clear enough. How can I make printings sharp? sudoku-txt and gfx examples in this repository have really huge difference in sharpness, one is displaying image and another created lines to display it. Do I also need to do printings using lines? Or how can overcome this?
Thank you
Regards,

@ghost
Copy link
Author

ghost commented Apr 9, 2015

Hello again, I want to update my question:
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.

@adafruit adafruit deleted a comment from franklin12 Jul 4, 2017
@Denrso
Copy link

Denrso commented Jul 4, 2017 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant