Png2uri is an command-line application for PNG (Portable Network Graphics) files. It does one simple task: converting a single PNG file or datastream into an HTML data URI, embedded in an HTML "IMG SRC" tag.

The author of png2uri has waived any copyright rights; it may be used, modified, and restributed by anyone without fee.

The png2uri application is a simple shell script. It is available here. It requires a version of "uuencode" that accepts the "-m" option and generates "base64" output.

A "git" repository for png2uri is available. You can access it by cloning git:// or you can browse it here. At present, the png2uri script is located in the "png2uri" branch of the "pmt" repository.

The author of png2uri is Glenn Randers-Pehrson,