barcode consolidation

存储架构 2015-01-14

I had a mess of loyalty cards filling my wallet. It kind of looked like this:

They took up too much room, and I used them infrequently. The only thing of value on them are the barcodes they carry that identify my account with whatever organization they’re tied to. Other folks have talked about doing consolidation in various ways like just scanning images of the cards and printing them all together. There was a site where you typed in card details and they generated barcodes for you, too. I didn’t want to hand my identifiers to a third party, and image scanning wasn’t flexible enough. I wanted to actually have the raw numbers, so I ended up using barcode . I didn’t use the Debian nor Ubuntu package, though, since it lacked SVG support, which was added in the latest ( cough March 2013) version.

I used the Android Barcode Scanner app, and just saved all the barcodes and their encoding details to a text file, noting which was which. For example:

Albertsons "035576322436","UPC_A"
Multnomah County Library "01237035218482","CODABAR"
Supportland "!0000005341632030145420","CODE_128"
...

I measured the barcode area, since some scanners can’t handle their expected barcodes being resized, (that’s another project: find out which CAN handle it), and then spat out SVG files. I compared the results to my actual cards, since some times encodings have different options (like dropping checksum characters, “ -c ” below):

barcode-svg -S -u in -g 1.5x0.5 -e upc-a      -b '035576322436' > albertsons.svg
barcode-svg -S -u in -g   2x0.5 -e codabar -c -b '01237035218482' > library.svg
barcode-svg -S -u cm -g 4.5x1   -e code128    -b '!0000005341632030145420' > supportland.svg
...

With Inkscape , I opened them all and organized them onto a wallet-card-sized area, printed it, and laminated it. Now my wallet is 7 cards lighter. More room for HID cards or other stuff :

© 2015,Kees Cook. This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License .

outflux

责编内容by:outflux (源链)。感谢您的支持!

您可能感兴趣的

Introduction to GSAP At first, I simply skipped it as I could only animate with requestAnimationFram...
Expo大作战(二十七)–expo sdk api之Util(expo自带工具类),ta... Expo大作战系列文章都在我都blog上贴着,朋友和我说掘金社区分享文章效果不错,故,来此分享一篇! 简要:本系列文章讲会对expo进行全面的介绍...
JavaScript createElement and SVG I want to create inline SVG graphics using Javascript. However, it seems l...
A search widget for static web sites Search on static web sites This JavaScript widget/module adds search on static...
Numbers Every Programmer Should Know By Year // Notes: // - All of Norvig's original numbers were from 2002 // - Any ...