The past few days have been spent writing a PHP class that will generate barcodes and save them as SVG files. This class is going to be used in an upcoming barcode-related website I’m building.
Currently it supports:
- UPC-A: The normal barcode you will see on most products in the US.
- UPC-E: A smaller, compressed version of UPC-A. Typically seen on products that do not have enough space to fit a full UPC-A barcode.
- EAN-13: The new international standard for barcodes. All stores in the US are supposed to be capable of using EAN-13 barcodes, but most products are still labeled with the older UPC-A barcodes.
- EAN-13 w/ EAN-5: An EAN-13 barcode with an EAN-5 barcode next to it. The EAN-5 barcode indicates the recommended price for the item. These are typically seen on books and periodicals, although it is common for books to have the EAN-13 w/ EAN-5 barcode on the back, and a UPC-A barcode on the inside of the cover.
The advantage of generating an SVG file instead of a PNG or JPG is that SVG graphics are vectors. This means you can make the barcode as large or small as you want without any loss in quality. Once you’ve sized it as large or small as you want, you can export it to a PNG, JPG, GIF, whatever.
Anyways, I’m not releasing the source yet (sorry). ExitBlue is designing my new barcode site (should be ready by the end of the month), and then I’ll need a week or two to get the PHP backend stuff working, and then maybe I’ll release some of the code. In the mean time, you can check out the online barcode generator.





Mobile Money
I’ve been wanting to make an iPhone app for the Fake Name Generator for months. The problem is, I don’t own a Mac, an iPhone, and the half dozen developers that have promised to make me an app haven’t actually done so. To make it worse, the Android has come out, creating yet another platform that I’d want an app for. Frustrating.
I decided if I can’t have an app, I’ll just make a mobile version of the FNG that works well on the iPhone and Android. I don’t have either of those, so I’ve been using the Android emulator that works in Eclipse. With just a few hours work, I was able to get a decent looking and fully-functioning trimmed down mobile version of the FNG.
I finished it last night, threw an AdSense for Mobile ad on it, and made $1.26 off of it before I woke up this morning. It hasn’t been long enough to know if I’ll get steady revenue from this page, but I’m optimistic.
If you have an iPhone or Android, check out the mobile FNG.