Label-Printer icon indicating copy to clipboard operation
Label-Printer copied to clipboard

printing images

Open maxtorchel opened this issue 7 years ago • 17 comments

how to print text with images (eg barcode)?

maxtorchel avatar Mar 31 '17 10:03 maxtorchel

Currently it's not possible to print images. I will add this functionality in the near future.

RamyTalal avatar Mar 31 '17 10:03 RamyTalal

Any progress on this? I'd love to be able to use this as well.

bennettstone avatar May 11 '18 18:05 bennettstone

@bennettstone some progress, but I don't have a lot of time to work on it.

RamyTalal avatar May 14 '18 16:05 RamyTalal

@RamyTalal first love this library. any update on image processing??

KitKanWong avatar Jan 22 '20 08:01 KitKanWong

@KitKanWong Thanks! No update yet, I've been to busy to work on this library.

RamyTalal avatar Jan 22 '20 10:01 RamyTalal

@RamyTalal excellent library, thanks! Are you still working on the image feature? Also, is there a way to add borders and black background?

ubay25 avatar Sep 02 '21 16:09 ubay25

@ubay25 Not at the moment, I haven't had time to work on it. About the background, I have no idea.

RamyTalal avatar Sep 02 '21 18:09 RamyTalal

I've been playing around with a very basic barcode command.

$printer->addCommand(new Command\Text("Model Name"));
$printer->addCommand(new Command\LineFeed());
$printer->addCommand(new Command\Barcode('12345'));

Which produces this when printed,

PXL_20210903_001003763

I've only tested code39 barcodes so far, but I'd like to eventually be able to print QR codes.

ntaylor-86 avatar Sep 03 '21 00:09 ntaylor-86

@ntaylor-86 thanks for this looks really good! Do you have the barcode command file?

ubay25 avatar Sep 03 '21 09:09 ubay25

@ubay25 I have made a barcode-test branch on my fork on this package, with the Barcode command added.

ntaylor-86 avatar Sep 06 '21 12:09 ntaylor-86

@ntaylor-86 Nice!

RamyTalal avatar Sep 06 '21 12:09 RamyTalal

👀

qr_code

$printer->addCommand(new Command\Text("Hello World!"));
$printer->addCommand(new Command\LineFeed());
$printer->addCommand(new Command\QrCode('RamyTalal'));

ntaylor-86 avatar Sep 08 '21 07:09 ntaylor-86

@ntaylor-86 This is amazing, thanks! I can't wait to try it out :) Any chance you can add horizontal line or text box in the future?

ubay25 avatar Sep 08 '21 09:09 ubay25

@ntaylor-86 can you please let me know where to find the source for the QRcode command?

ubay25 avatar Sep 08 '21 16:09 ubay25

@ubay25, commit added: QrCode command added

I'm struggling with changing the size of the QR Code printed?

ntaylor-86 avatar Sep 16 '21 07:09 ntaylor-86

Hi everyone, thank you to all for the help with this awesome library!!

It's possible print images with the ESC/P commands? I would like print images with this library!

MauRuiz2010 avatar Aug 31 '23 15:08 MauRuiz2010

Hi everyone, thank you to all for the help with this awesome library!!

It's possible print images with the ESC/P commands? I would like print images with this library!

The last time I checked, ESC/P was very limited. I'm not sure if that's still the case.

RamyTalal avatar Aug 31 '23 16:08 RamyTalal