Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Image (PCX) for EPL2 Zebra printer

I am having trouble producing and uploading graphics to an EPL2 printer.

Having tired quite literally any pieces of software available and trawled the internet, I am at a loss.

I have a 1 bit file which I try to upload with the following script..

setppi.txt

GK"NAMEPCX"
GK"NAMEPCX" 
GM"NAMEPCX"3042

and then upload with

copy setppi.txt+ppirmt.pcx lpt1/b

Has anyone with experience got any tips before I tear out what is remaining of my hair? I am almost certain that this issue is to do with the creation of the pcx but having tried all options, I am unsure as to my next step.

like image 719
Gavin Avatar asked Dec 27 '25 16:12

Gavin


2 Answers

Here's the way I found to create the PCX properly:

In gimp, save the file as a 1-bit (black and white) BMP. Don't select PCX because the saved format is not 1-bit PCX as required by the printer!

Use imagemagick's convert program to convert your BMP to PCX.

The other issue I ran across after I got that down was that graphics were still corrupt, that was a codepage issue, so watch out for that.

like image 60
rkone Avatar answered Dec 31 '25 08:12

rkone


You don't mention which programming language you're using.

If it's C# (or .NET in general), then here's a blog post about printing images with EPL:
Using the EPL2 GW command to send an image to a Zebra thermal printer

And another blog post from the same guy, that got me started with printing EPL to Zebra printers with C#.

like image 31
Christian Specht Avatar answered Dec 31 '25 08:12

Christian Specht