RSS2.0 では rss/channel/image/url に指定するロゴ画像。
画像サイズはデフォルトで88x31、最大で144x400らしい。

RSS の image チャンネル要素は、 チャンネルと共に表示する画像を指定します RSS 2.0。
(中略)
image 要素が指定する画像について、 RSS 2.0 は GIF、JPEG、PNG のいずれかとしています。

画像の大きさは、慣習的に 88×31 とされています。 (これは RSS 0.9 でもそうなっています。RSS 0.91 では幅が1~144、高さが1~400とされていました。)

image
<image> sub-element of <channel>

<image> is an optional sub-element of <channel>, which contains three required and three optional sub-elements.

<url> is the URL of a GIF, JPEG or PNG image that represents the channel.

<title> describes the image, it's used in the ALT attribute of the HTML <img> tag when the channel is rendered in HTML.

<link> is the URL of the site, when the channel is rendered, the image is a link to the site. (Note, in practice the image <title> and <link> should have the same value as the channel's <title> and <link>.

Optional elements include <width> and <height>, numbers, indicating the width and height of the image in pixels. <description> contains text that is included in the TITLE attribute of the link formed around the image in the HTML rendering.

Maximum value for width is 144, default value is 88.

Maximum value for height is 400, default value is 31.

RSS 2.0 Specification (version 2.0.11)

RSS 1.0 だと


<image rdf:resource="{image_uri}" />

で指定するらしい。

5.4 <image>

An image to be associated with an HTML rendering of the channel. This image should be of a format supported by the majority of Web browsers. While the later 0.91 specification allowed for a width of 1-144 and height of 1-400, convention (and the 0.9 specification) dictate 88x31.

Syntax: <image rdf:about="{image_uri}">
Requirement: Optional; if present, must also be present in channel element [5.3.4]
Required Attribute(s): rdf:about
Model: (title, url, link)
Example:

<image rdf:about="http://xml.com/universal/images/xml_tiny.gif">
<title>XML.com</title>
<link>http://www.xml.com</link>
<url>http://xml.com/universal/images/xml_tiny.gif</url>
</image>

RDF Site Summary (RSS) 1.0

このブログ「ヅラッシュ!」のRSSをざっと見るとこんな感じ。


<?xml version='1.0' encoding='UTF-8'?>
<rss xmlns:georss='http://www.georss.org/georss' xmlns:gml='http://www.opengis.net/gml' xmlns:geo='http://www.w3.org/2003/01/geo/wgs84_pos#' version='2.0'>
  <channel>
  <title>ヅラッシュ!</title>
  <copyright>Copyright(c) NI-Lab. All Right Reserved.</copyright>
  <description>職業/趣味プログラマの日記・備忘録。リンクはご自由に。ツッコミ/コメントはお気軽に。</description>
  <link>http://www.nilab.info/z3/</link>
  <image>
    <title>ヅラッシュ!</title>
    <link>http://www.nilab.info/z3/</link>
    <url>http://www.nilab.info/z3/zlash_logo.png</url>
    </image>
  <lastBuildDate>Thu, 31 Mar 2011 03:00:01 +0900</lastBuildDate>

この http://www.nilab.info/z3/zlash_logo.png 作るのすっかり忘れてた。

とりあえず ヅラッシュドット で代用しておく。

せっかくなのでウチのサイトで使ってたり使ってなかったりするRSSのために準備した画像を並べてみる。

i am a cheap jap! i am a cheap jap!

i am a cheap jap! こっちは昔使ってた奴かなぁ。。。

Ido-Batarian BBS Ido-Batarian BBS

NI-Lab.'s MemoWiki NI-Lab.'s MemoWiki

時々、音楽 時々、音楽

NI-Lab.’s D? NI-Lab.’s D? で使ってた?どうだっけ・・・

tags: rss feed blog

Posted by NI-Lab. (@nilab)