How do I make it so pictures and images are visible from an RSS feed in FeedAPI?

In the aggregator module I know I have to have the Only local images are allowed. tag allowed.

I've disabled the core module to try FeedAPI and like it better... I just can't get images to load.

Help anyone?

Thanks,
Brian

Comments

wolfderby’s picture

I'm found where to allow the img tag... it didn't seem to help...

I also tried allowing all html and the images still weren't showing up. :(

I set the default input format for all nodes to full html and that did the trick.

iantresman’s picture

Yes, I solved this by going to Administer | Content management | News aggregator, then selecting settings, and adding to the list of Allowed HTML tags, the tag <img>

The I went to my theme's CSS file and added the following so that all the images appeared on the right, and were never more than 120 pixels wide.

.feed-item-body img {float:right; max-width:120px; height:auto;}

Sam308’s picture

This will help too.

For version 6.3 and FeedApi 6.x-1.2, you can use this code:

The following code added to a image's CSS properties will resize all images larger than 500px to a maximum width of 500px.

  max-width: 500px;
  height:auto;

Depending on your theme, you may also want to add this "third line" of code too:

  width:expression(this.width > 500 ? "500px" : this.width);

Just add this CSS code to the existing .node .content img style tag within the theme's main style.css file.

I am sucessfully using this code addition to control maximum image size of all images within feed nodes.

Caution:
My site is currently RSS only and I am not using regular page nodes.

Therefore, this may affect all images within page nodes too since the code is placed within the .node .content img style tag.

The modified .node .content img style tag should look like this:

.node .content img {
  padding:7px;
  max-width: 500px;
  height:auto;
}

Have fun,

Sam Raheb (Sam308)

netentropy’s picture

I am having this problem but I dont really understand your explanation

why are large images not showing with FeedAPI?

they show after i view the original blog but not when i got to my site

http://www.netentropy.com/blog

jaks1970’s picture

In Drupal 5.3 to fix this I had to go to /administor/site configuration/feedapi settings. I noticed there is so many navigation changes between versions it can a little confusing looking for something you are told is there when it somewhere else. I think maintainers should try note these nav changes when they update their modules.

Thanks to the maintainer for all the hard work. :)

poloparis’s picture

I understand this is an old issue, but i'm having the exact same problem.

I'm using D6.13, feedapi 6.x-1.7-beta1, with no other modules installed.
I enabled Common syndication parser but not simple pie.
I allowed the Only local images are allowed. tag to be accepted in filtered html, but set the default input for all nodes to full html regardless.
I set the maximum link text length to 250 even though I believe that has no incidence on the link itself, just the text portion.

The images in the feed I'm using are still not loading in my nodes.
for reference, 2 of the feeds I'm using that contain images are these ones :
http://www.parismatch.com/rss/feed/people-match.rss
http://feeds.feedburner.com/people/photos

If anyone has any idea, please let me know.
Thank you
Paul

mefisto75’s picture

Same problem.

eriknewby’s picture

poloparis,

I'm not sure how exactly you're pulling in your content so I'm trying not to make any assumptions here, but here is my setup which is pulling in images (finally).

I had to disable the default "body" field of my content type (blogitem) which is being used to create nodes from the feed. Then created a custom "textarea" via cck. (making sure "text processing" was set to "filtered text" - note: my default input type is Full HTML) I used feedapi_mapper to map the feed's raw content to my custom textarea. And now my images are showing up along with my text.