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

How to add numbers in barcodes #125

Closed
flames943 opened this issue Mar 8, 2021 · 2 comments
Closed

How to add numbers in barcodes #125

flames943 opened this issue Mar 8, 2021 · 2 comments

Comments

@flames943
Copy link

Hello.

First of all I want to give you my congratulations for such an excellent liberia created for the generation of barcodes.

my question is how can I add the barcode characters below it?

pass from a barcode without characters:

nochar

to this barcode with characters:

char

I generated that image in photoshop to understand what I want to do with the php code, since with code I can't solve it and I need it to be able to generate code with the get method.

@louis123562
Copy link

Hey man,

i dont know if you are familiar with imagick, but with it you could add your numbers to it:

  1. generate the image of barcode
  2. load file/binary into imagick
  3. create another image in imagick, which holds your numbers
  4. combine both images with imagick

Sure it is a bit of work, but it is a possible solution.

I would like to hear other opinons.

@casperbakker
Copy link
Member

Thanks for your kind words.

At this moment it is not something that this library supports. You can use the outputted image as a source to add text to it with GD or Imagick. You can just search for how to add text with GD/Imagick to an existing image.

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

No branches or pull requests

3 participants