# Include image in rss feeds?

**URL:** <https://www.ruby-forum.com/t/include-image-in-rss-feeds/93210>\
**Category:** Rails\
**Created:** [April 29, 2007, 10:37am UTC](https://www.ruby-forum.com/t/include-image-in-rss-feeds/93210 "2007-04-29T10:37:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/45deac/32.png) [@abon](https://www.ruby-forum.com/u/abon)\
**Post date:** [April 29, 2007, 10:37am UTC](https://www.ruby-forum.com/t/include-image-in-rss-feeds/93210/1 "2007-04-29T10:37:21Z")

</div>

Sorry that I’m not very familiar with rss standards.  
I read rails recipe and implemented the rss example.  
But now I would like to insert images in a feed.  
How could this be done?

From some of feeds with images , I found them using rdf.  
Any one could point some direction?  
Many thanks

Abon

---

<div class="post-metadata">

**Author:** ![abon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/45deac/32.png) [@abon](https://www.ruby-forum.com/u/abon)\
**Post date:** [April 29, 2007, 3:33pm UTC](https://www.ruby-forum.com/t/include-image-in-rss-feeds/93210/2 "2007-04-29T15:33:59Z")

</div>

Depends on what you mean when you say RSS. Many people use this term  
to describe all kinds of feeds. If you really mean RSS 2.0, images are  
not technically supported on individual items (though they are  
supported on the channel). However, typically the “description”  
element of an item is XML-encoded HTML, and most folks include “img”  
tags along with their text to get images into their individual items.

The RSS 2.0 spec is well defined here:  
[http://cyber.law.harvard.edu/rss/rss.html](http://cyber.law.harvard.edu/rss/rss.html)  
(Don’t ask me why it belongs to Harvard Law.)

With Atom, the story is essentially the same, except that you’ll put  
your HTML in either your “summary” or your “content” (or both) sub-  
elements of your entry elements. Atom also supports something called  
an “enclosure”, but that’s typically not used to embed images, it’s  
used to provide a link to any type of media.

The Atom spec can be found here: [http://atompub.org/rfc4287.html](http://atompub.org/rfc4287.html)

But to make this long story short: Use HTML with IMG tags in your  
description/summary/content. 🙂

On Apr 29, 4:37 am, Bontina C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
