You are here:  » Possible to resize images in feeds?


Possible to resize images in feeds?

Submitted by Klaas Koopman on Wed, 2009-02-18 09:00 in

Hey All,

I got the feed working properly, but the only thing I'm having problems with are the images. The images in the feeds are way to big, is there a way to resize these images when I put the feed on my site or something?

Thanks ahead!

Submitted by support on Wed, 2009-02-18 09:03

Hi Klaas,

The easiest way is to include a width or height (but not both!) attribute in the HTML that you are generating, for example:

  print "<img src='".$record["IMAGE_URL"]."' width='150' />";

(or if you are coming out of a database of course, whatever your variable name is - for example $hotel["image_url"] instead of $record["IMAGE_URL"])

Hope this helps!
Cheers,
David.

Submitted by Klaas Koopman on Wed, 2009-02-18 09:24

Thanks alot, it worked!