Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an Aztec barcode generator library for JavaScript?

I'm looking for an open source image generation script for Aztec (2D) barcodes:

Aztec Barcode

I can't seem to find any available scripts out there.

There is an Active-X control here that can be used only in IE and an image generator URL here, but these are not useful as it should be a pure javascript solution running under webkit-based browsers that can run in disconnected mode for mobile apps.

Anyone have some old code for this hanging around either written in javascript or that can be ported to javascript?

Thanks.

like image 612
Steven de Salas Avatar asked Mar 08 '12 15:03

Steven de Salas


People also ask

Is an Aztec barcode the same as a QR code?

The essential difference between the more common QR code and Aztec is that QR codes are better for being read by consumers' phones. Aztec, however, is better for being displayed on consumers' phones – essential for high-speed scanning in a busy transport environment.

What does an Aztec barcode look like?

An Aztec Barcode format is centered around the central square, with a pattern of different layers. The pattern features square pixel layers of different sizes, such as 9 x 9 pixels, 13 x 13 pixels, 23 x 23 pixels, and so on. When combined, these squares are then encoded with the data the Aztec Barcode holds.


1 Answers

bwip-js runs in any browser that supports <canvas> – IE 9+, FF 2+, Chrome, Safari 3+, Opera 9+, and Android 2.1+. It also runs server-side in Node. (If you wanted downlevel IE support, try using a <canvas> emulation layer.)

Aztec is among the 83 barcode formats it can draw. Here's a demo of it in action.

like image 198
josh3736 Avatar answered Sep 24 '22 06:09

josh3736