I am using SimpleFeed to aggregate RSS feed content with feed items processed as nodes.

What I would like to be able to do is display a resized/scaled/cropped thumbnail of the first image contained in a feed item (if any) in a teaser list.

Is anyone able to assist with this. I've looked at ImageCache but haven't a clue as to how it might be employed.

Any ideas, suggestions, hints would be greatly appreciated.

Comments

katris’s picture

Make sure you have the following modules installed: CCK ( http://drupal.org/project/cck ) and ImageField ( http://drupal.org/project/imagefield ) as well as the ImageCache Module ( http://drupal.org/project/imagecache ) turn on all three of these (the image filed checkbox will appear within the CCK group). Next you will want to create a preset for the image cache module Admin->Site Configuration->ImageCache. The form is pretty clear here. Then you will want to add the following line of code to your tpl files that are outputting your node versions of your RSS feeds where you want the image to appear:
print theme('imagecache', $ruleset_namespace, $image['filepath'], $alt, $title, $attributes)
$alt, $title and $attributes are optional parameters that are the respective img tag attributes.
Also the ImageChache Module has a nice Read Me file inside to help with any confusion.

I hope this helps.
JK

Slim Pickens’s picture

Thanks JK

I just found this reply when searching for something else. I'll look into it.

Cheers

usertry’s picture

Hi Slim

Did you get this working? If yes, could you please share how you did it? I mean, were you able to extract the first image from the feed item and display it as thumbnail in the teaser list?

Thanks!