<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:html="http://www.w3.org/1999/html" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>Ross Burton</title><link>http://www.burtonini.com/blog</link><description>A potted account of Ross' life</description><language>en</language><ttl>60</ttl><dc:creator>Ross Burton</dc:creator><admin:generatorAgent rdf:resource="http://pyblosxom.sourceforge.net/"/><admin:errorReportsTo rdf:resource="mailto:ross+web@burtonini.com"/><item><title>RDF in PNG</title><guid isPermaLink="false">computers/png-rdf-2004-01-28-09-48</guid><link>http://www.burtonini.com/blog/computers/png-rdf-2004-01-28-09-48</link><description>A long-running goal of mine is to write a image gallery for my web page, so the screenshot and photo ...</description><content:encoded><![CDATA[  <p>
    A long-running goal of mine is to write a image gallery for my web page, so
    the screenshot and photo galleries can have categories, titles, dates,
    etc. Being a fan of metadata, XML, Dublin Core etc, I've planned to do this
    by embedding the metadata into the image files instead of relying on a
    database.
  </p>
  <p>
    A little poking and emailing comes up with interesting links. Dave Beckett has <a
    href="http://www.ilrt.bris.ac.uk/people/cmdjb/2001/04/rdf-icon/">embedded RDF into a PNG</a> by
    using a <tt>tEXt</tt> field called 'Metadata'.  However, he doesn't have any nice tools to do
    this and usually uses <tt>pnmtopng</tt> (which allows the user to specify text chunks).  I poked
    a libpng but that doesn't really allow me to fiddle with the chunks.
  </p>
  <p>
    So I'm announcing PyPNG!  A very small and rather poor Python (plus a smidge of C to do CRCs)
    library with grand ambitions. At the moment I can copy a PNG file (by reading the chunks, and
    then writing them again), display the text chunks, et la piece de resistance: a tool to set the
    content of an arbitary text chunk!  PNGs with embedded RDF, here I come.
  </p>
  <p>
    Once I've fiddled with the library design a little I'll write a PNG Explorer (hmm,
    <tt>png:///</tt> in Nautilus is tempting) and a Metadata Editor for PNG files. Then I'll try and
    do exactly the same for JPEG files.  Finally of course I'll have to write the web front-end.
  </p>
  <p>
    No downloads yet, but if you want the source ask for it.  Hopefully I'll have a sane tarball of
    PyPNG done this week though.
  </p>]]></content:encoded><dc:date>2004-01-28T09:48:00Z</dc:date></item></channel></rss>