QR code generation C library and command line.
Efficient output, and wide variety of output formats including png, svg, eps, ps, text, binary, hex, and even a data URL format for png. See --help for more info.
There is even a coloured PNG format to allow you to see what parts are data, ecc, padding, control, etc.