WhiteHouse / wh-app-ios

671 stars 260 forks source link

Feed thumbnails #12

Closed romfeo closed 12 years ago

romfeo commented 12 years ago

How should I setup my rss feed in order for the app to recognise the thumbnail and create a "PhotoCell" in WHBlogViewController

Thank you

welschp commented 12 years ago

Great question - thanks for flagging. I see you've closed this issue, but I've added the following to the README...

A thumbnail image is displayed in feed list views when the source feed has a media:thumbnail element. The "width" attribute is required; the parser currently ignores thumbnail elements with no width.

Example:

<item>
     <media:thumbnail url="http://www.whitehouse.gov/example-image-320px.jpg" width="320"/>
     <media:thumbnail url="http://www.whitehouse.gov/example-image-640px.jpg" width="640"/>
</item>

The optimal size for display is chosen depending on the context (e.g. 640px for article feeds on the iPhone 4, or ~70px for photo gallery thumbnails on the iPhone 3GS) and screen density.