-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Cannot parse (BASE64) into a raw IMAGE (TSPL) #1264
Comments
if this is not possible using the current version of the package, can you please guide me to the right direction? When using the Seagull Bartender Program, it prints successfully and the print command looks like this:
what do I need to do to convert a (PIL image object)/Image to get a command string like this? |
TSPL-EZ isn't an image format, but rather a compatibility to allow certain printer firmwares to emulate EPL/ZPL. Please specify one of those instead. Valid options are:
|
would you mind pointing me to where that code that gets the image data to the printing code result? |
Sure:
|
As well as here:
|
Your package is included with the
frappe bench framework
, before runningnpm update qz-tray
it used to result in a similar error but with my website link included before the base64 stringI hope that you guide me on this matter because I am lost in this one. My Label Printer does not support the Arabic language and the only option I could think of was to make an image of that and pass it to the printer.
In this example, I am only testing passing the base64 string of an image saved in a memory object; A real use case would be sending a command that contains the barcode and its number using the
TSPL commands
for it, and then under it, I would like to write text in Arabic (can only be done using theTSPL Bitmap
command)note: English text can be passed to the printer perfectly fine using the
TSPL Text
commandPython Code:
JS Code
ERROR RESULT:
The text was updated successfully, but these errors were encountered: