Improved: Generating Barcode Images
27 April 2022When you need to display the image of a barcode e.g. on your website, or you need it to print labels, you can use the API call barcode-image and pass it the ean or upc parameter to get the image you need as PNG graphic.
You can do this on the fly whenever you need the image or you can store the generated images on your server.
Example image:
Now you can automatically scale the image to the exact size that you need using the new width and height parameters.
The default size when you don't specify anything is a width of 102 pixels and a height of 50 pixels.