<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> <dfn><cite>はてなフォトライフ</cite></dfn>は、
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">株式会社はてな</anchor>の<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">画像</anchor>共有サービスです。</p><section><h1>フォトライフ記法</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="4" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[4]</anchor-end> 
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">はてな記法</anchor>では <dfn><code>f:id:</code></dfn> から始まる短い文字列で<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">フォトライフ</anchor>の画像を貼り付けることができます。</p><pre class="regexp code">[Ff]:[Ii][Dd]:([-_a-zA-Z0-9]+):([0-9]+)([PpJjGgFf])(?::([Ii][Mm][Aa][Gg][Ee]|[Mm][Oo][Vv][Ii][Ee]))?</pre><pre class="perl code">            my $ext = 'jpg';
            if (my $e = $v-&gt;[3]) {
                if ($e eq 'p' or $e eq 'P') {
                    $ext = 'png';
                } elsif ($e eq 'g' or $e eq 'G') {
                    $ext = 'gif';
                } elsif ($e eq 'f' or $e eq 'F') {
                    $ext = 'flv';
                }
            }
            return sprintf q<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://cdn-ak.f.st-hatena.com/images/fotolife/%s/%s/%s/%s.%s">http://cdn-ak.f.st-hatena.com/images/fotolife/%s/%s/%s/%s.%s</anchor-external>,
                substr($v-&gt;[1], 0, 1),
                $v-&gt;[1],
                substr($v-&gt;[2], 0, 8),
                $v-&gt;[2],
                $ext;</pre></section><section><h1>メモ</h1></section></body></html>