First of all thank you Beverleyh for answering my question.
Yes, I would like it to pull a larger image from the rss feed. Now it fetches the first image from the feed (Marked as Green and I would like to fetch the one ending in 160.jpq (Marked as red)): http://areena.yle.fi/tv/kaikki.rss
Code:
<item>
<title>
<![CDATA[ Yle Uutiset viittomakielellä: 10.02.2013 16.55 ]]>
</title>
<media:credit role="production department">Yle TV1</media:credit>
<areena:tvLicense>false</areena:tvLicense>
<link>http://areena.yle.fi/tv/1789751</link>
<guid isPermaLink="false">6b9365aef11e4db1a3121f6046093ad5</guid>
<description>
<![CDATA[ ]]>
</description>
<pubDate>Sun, 10 Feb 2013 16:55:00 +0200</pubDate>
<category>Uutiset</category>
<itunes:image href="http://areena.yle.fi/static/mk/images/previews/6b/6b9365aef11e4db1a3121f6046093ad5/6b9365aef11e4db1a3121f6046093ad5_1360508971754_720.jpg"/>
<media:thumbnail url="http://areena.yle.fi/static/mk/images/previews/6b/6b9365aef11e4db1a3121f6046093ad5/6b9365aef11e4db1a3121f6046093ad5_1360508971754_65.jpg" width="65" height="37"/>
<media:thumbnail url="http://areena.yle.fi/static/mk/images/previews/6b/6b9365aef11e4db1a3121f6046093ad5/6b9365aef11e4db1a3121f6046093ad5_1360508971754_160.jpg" width="160" height="90"/>
<media:thumbnail url="http://areena.yle.fi/static/mk/images/previews/6b/6b9365aef11e4db1a3121f6046093ad5/6b9365aef11e4db1a3121f6046093ad5_1360508971754_220.jpg" width="220" height="124"/>
<media:thumbnail url="http://areena.yle.fi/static/mk/images/previews/6b/6b9365aef11e4db1a3121f6046093ad5/6b9365aef11e4db1a3121f6046093ad5_1360508971754_620.jpg" width="620" height="349"/>
<media:thumbnail url="http://areena.yle.fi/static/mk/images/previews/6b/6b9365aef11e4db1a3121f6046093ad5/6b9365aef11e4db1a3121f6046093ad5_1360508971754.jpg" width="700" height="394"/>
<media:thumbnail url="http://areena.yle.fi/static/mk/images/previews/6b/6b9365aef11e4db1a3121f6046093ad5/6b9365aef11e4db1a3121f6046093ad5_1360508971754_720.jpg" width="720" height="405"/>
<dcterms:subject>
<![CDATA[ Yle Uutiset viittomakielellä ]]>
</dcterms:subject>
<dcterms:valid>
start=2013-02-10T16:55:00+0200; end=2013-03-12T23:59:59+0200; scheme=W3C-DTF;
</dcterms:valid>
<media:content duration="270"/>
</item>
And the "160.jpq" comes from the feed, as the feed has 6 thumbnails with different widths. So in my case 160 px width would be perfect for my site -> I should somehow grab the thumbnail ending in "160.jpg"
The reason why the image is blurry is course the line:
Code:
echo '<img border="0" title="'.$item['content'].'" width="160" src="'.$item['kuva'].'"/></a>';
Stretches the image bigger. From 65px -> 160px. To avoid this from happening I should somehow get the correct image size from the rss feed...And I believe you could somehow get it by using array?
Anyways sorry for my bad English, but yet again I would really appreciate if somebody could help me.
Bookmarks