Skip to content

Instantly share code, notes, and snippets.

View aminhusni's full-sized avatar

Amin Husni aminhusni

View GitHub Profile
@aminhusni
aminhusni / img2bin.py
Last active January 12, 2019 18:35
Convert raw image to binary file for thermal Nippon Printer
#This was made specifically using the spec sheet for NP-2511D (2 inch version)
#Spec sheet can be found here
#https://archive.org/details/NP2511D23511D2DF10116COMR100P1ENG
print("")
print("This program prepares your raw image file for thermal printing")
print("Insert your .raw file and convert into .txt binary file")
print("")
fileinput = input('Input file: ')