Skip to content
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

printing images #1

Open
maxtorchel opened this issue Mar 31, 2017 · 17 comments
Open

printing images #1

maxtorchel opened this issue Mar 31, 2017 · 17 comments

Comments

@maxtorchel
Copy link

how to print text with images (eg barcode)?

@RamyTalal
Copy link
Owner

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

@bennettstone
Copy link

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

@RamyTalal
Copy link
Owner

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

@KitKanWong
Copy link

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

@RamyTalal
Copy link
Owner

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

RamyTalal pushed a commit that referenced this issue Jul 19, 2021
Update Readme with addition of new model
@ubay25
Copy link

ubay25 commented Sep 2, 2021

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

@RamyTalal
Copy link
Owner

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

@ntaylor-86
Copy link
Contributor

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.

@ubay25
Copy link

ubay25 commented Sep 3, 2021

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

@ntaylor-86
Copy link
Contributor

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

@RamyTalal
Copy link
Owner

@ntaylor-86 Nice!

@ntaylor-86
Copy link
Contributor

👀

qr_code

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

@ubay25
Copy link

ubay25 commented Sep 8, 2021

@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
Copy link

ubay25 commented Sep 8, 2021

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

@ntaylor-86
Copy link
Contributor

@ubay25, commit added: QrCode command added

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

@MauRuiz2010
Copy link

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!

@RamyTalal
Copy link
Owner

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.

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

No branches or pull requests

7 participants