<?xml version="1.0"?>
<!-- name="generator" content="blosxom/2.0.2" -->
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">

<rss version="0.91">
  <channel>
    <title>peteg's blog   </title>
    <link>http://peteg.org/blog</link>
    <description></description>
    <language>en</language>

  <item>
    <title>img update.</title>
    <link>http://peteg.org/blog/2007/03/20#2007-03-20-img</link>
    <category>/noise/blogging/img</category>
    <description>
&lt;p&gt;

A massive port of some of my old &lt;a href=&quot;http://peteg.org//plog/&quot;&gt;PLog&lt;/a&gt; entries led me to update the img
plugin. Now it does some fancier &lt;a href=&quot;http://www.w3.org/Style/CSS/&quot;&gt;CSS&lt;/a&gt; stuff. Enjoy.

&lt;/p&gt;

&lt;ul&gt;

&lt;li&gt;&lt;a href=&quot;http://peteg.org/static/img&quot;&gt;img&lt;/a&gt;&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;

&lt;a href=&quot;http://www.w3.org/Style/CSS/&quot;&gt;CSS&lt;/a&gt; brokenness: The &lt;a href=&quot;http://www.w3.org/Style/CSS/&quot;&gt;CSS&lt;/a&gt; gunk from some &lt;a
href=&quot;http://www.w3.org/Style/Examples/007/figures.html&quot;&gt;W3 style
examples&lt;/a&gt; which works fine... if you don't mind your images flush left or
right.  Why is there no simple way to centre arbitrary objects?

&lt;/p&gt;</description>
  </item>
  <item>
    <title>&lt;a href=&quot;http://blosxom.ookee.com/blog/&quot;&gt;Blosxom&lt;/a&gt; plugin: img</title>
    <link>http://peteg.org/blog/2007/01/03#2007-01-03-img</link>
    <category>/noise/blogging/img</category>
    <description>
&lt;p&gt;

(or: reinventing &lt;a href=&quot;http://peteg.org//plog/&quot;&gt;PLog&lt;/a&gt;, one piece at a time.)

&lt;/p&gt;
&lt;p&gt;

I wanted to add images to the blog, and as I'm fed up with &lt;a href=&quot;http://www.imagemagick.org/&quot;&gt;ImageMagick&lt;/a&gt; I
was relieved to find that someone has written a more usable replacement for
&lt;a href=&quot;http://www.perl.org/&quot;&gt;perl&lt;/a&gt; called &lt;a href=&quot;http://imager.perl.org/&quot;&gt;Imager&lt;/a&gt;. You'll need to
install that first, and it should be as easy as politely asking &lt;a href=&quot;http://www.cpan.org/&quot;&gt;CPAN&lt;/a&gt; to
do it for you. Also you'll need &lt;a
href=&quot;http://www.blosxom.com/plugins/interpolate/interpolate_fancy.htm&quot;&gt;&lt;code&gt;interpolate_fancy&lt;/code&gt;&lt;/a&gt;
so you can invoke the method in your stories. Here's the code:

&lt;/p&gt;

&lt;ul&gt;

&lt;li&gt;&lt;a href=&quot;http://peteg.org/static/img&quot;&gt;img&lt;/a&gt;&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;

The instructions are in the script. It's still quite rough, and I'll be
updating it as I go along. Take a good look at your error logs if things
don't work.

&lt;/p&gt;

&lt;div class=&quot;figure&quot;&gt;
&lt;p&gt;&lt;a href=&quot;http://peteg.org//static/IMG_1667.JPG&quot;&gt;&lt;img src=&quot;http://peteg.org//static/cache/tn_IMG_1667.JPG&quot; width=&quot;93&quot; height=&quot;70&quot; class=&quot;scaled&quot; style=&quot;&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;


&lt;p&gt;

The existing &lt;a href=&quot;http://blosxom.ookee.com/blog/&quot;&gt;Blosxom&lt;/a&gt; image plugins are a lot fancier than this; I just
wanted something that generates thumbnails and automatically adds the
requisite attributes to the &lt;code&gt;img&lt;/code&gt; tag. This photo is from my trip
up to Berilee last month &amp;mdash; if you squint you can see the car ferry at
Berowra Waters. The markup is:

&lt;/p&gt;

&lt;pre&gt;

&amp;lt;@img.img src=&quot;IMG_1667.JPG&quot;
 style=&quot;border-style: none; margin: 0 0 10px 10px; float: right; clear: right;&quot; /&amp;gt;

&lt;/pre&gt;

&lt;p&gt;

which, when run on my &lt;a href=&quot;http://www.apple.com/ibook/&quot;&gt;iBook&lt;/a&gt;, results in the &lt;a href=&quot;http://www.w3.org/1999/xhtml&quot;&gt;XHTML&lt;/a&gt;:

&lt;/p&gt;

&lt;pre&gt;
&amp;lt;a href=&quot;http://localhost/~peteg/images/IMG_1667.JPG&quot;&amp;gt;&amp;lt;
 img src=&quot;http://localhost/~peteg/images/cache/tn_IMG_1667.JPG&quot;
 width=&quot;93&quot;
 height=&quot;70&quot;
 style=&quot;border-style: none; margin: 0 0 10px 10px; float: right; clear: right;&quot;
 alt=&quot;&quot; /&amp;gt;&amp;lt;
/a&amp;gt;
&lt;/pre&gt;

&lt;p&gt;

I get the impression that the &lt;code&gt;interpolate_fancy&lt;/code&gt; plugin doesn't
like having newlines in the arguments.

&lt;/p&gt;
&lt;p&gt;

...and yes, I am vaguely aware that those suckling on the &lt;a href=&quot;http://feedvalidator.org/&quot;&gt;RSS&lt;/a&gt; nipple are
not getting the full technicolour experience. Bear with me.

&lt;/p&gt;</description>
  </item>
  </channel>
</rss>
