• Resolved norwat

    (@norwat)


    What is the syntax/code for including blog ID images in feeds (RSS and Atom). There are two kinds of images: a 16×16 favicon, and a larger image that appears next to the blog title and description. Can’t find any documentation for how to include these in feeds.

    My favicon works fine on my web page … but it doesn’t show up in bloglines, netnewswire, or other readers/aggregators. The plugin “favicon manager” is only partially helpful in this regard. The code that appears in the feed has the wrong syntax (it’s not valid XML), and doesn’t distinguish between the two kinds of images (favicon and other) … that frequently appear in professionally produced bogs.

    Please help … I am sure others would like their favicon to appear in their feeds?

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    I took a look at the Favicon-manager plugin, and it inserts perfectly valid code into the RSS2 and ATOM feeds. It’s certainly the correct syntax according to the RSS2 specification, and I’d like to know what you think is wrong with it.

    As for the rest, the item element in RSS does not support images. So there’s no image per story place to put it.

    Thread Starter norwat

    (@norwat)

    When you validate the feed, it lists the code as having an error.

    I believe it is this (not proper XML):

    <url>…favicon.ico</url>

    and it should be this:

    …favicon.ico” />

    But then again, I am no expert (which is why I am posting my question here).

    Once again … there are two images typically included as an ID to a blog: a favicon (16 x 16) and a larger image (is this called an avatar?). How do you get BOTH of these to show up correctly in readers and aggregators (such as bloglines)?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    No, actually, that is perfectly proper XML and would be the correct way to do it. I think you need to reread your XML documentation and books and such.

    You only use a … /> type of close when the tag has no actual inline contents. The URL tag above has contents. Specifically, it’s telling where the favicon file is.

    Once again … there are two images typically included as an ID to a blog: a favicon (16 x 16) and a larger image (is this called an avatar?). How do you get BOTH of these to show up correctly in readers and aggregators (such as bloglines)?

    Generally speaking, you don’t. That’s not a function of RSS or feeds or what have you. Size is irrelevant.

    In an RSS2 feed, for example, the channel can have an image element, which must have url, title, and link elements in it. The image can also specify width and height elements if it wants. It can also have a description.

    I suppose you could have multiple images in a channel, in theory. There’s nothing prohibiting it. Although I imagine most feedreaders would not like it much.

    You don’t get to specify how your content is rendered. That’s not what feeds are and that’s not what they do.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Favicon and Images in Feeds’ is closed to new replies.