Search code examples
imagerssfeed

How to handle images in a blog feed?


This seems like a basic thing to do, but I don't see an obvious best practice on the web.

  1. What's the best way to include images in a blog feed, and
  2. What's the best way to parse the feed and serve the image on a webpage on a different domain?

Any answers would be awesome. Thanks!


Solution

  • Two possible ways to "handle" images: enclosures and in the body of the description tag. If they are large images, use enclosures. If they're small, embed them in the description tag and set its content-type to be html.

    The line between "large" and "small" seems arbitrary, however.