Hi Abduraooft,
this loks like what i need

the problem i have at the moment is that the images are contained within a rss feed and are pulled out using,
{$item->imageURL}//which gives me the address of the image
so i have used this in your code,
PHP Code:
$size= getimagesize($item->imageURL);
$width = $size[0]; // width of the image
$height = $size[1];
if($size[0]>$size[1])
$scale=$size[0]/100;
else
$scale=$size[1]/100;
$new_width= $size[0]/$scale;
$new_height=$size[1]/$scale;
$new_image = imagecreatetruecolor($new_width, $new_height);
but i am getting a
Warning: Division by zero in C:\wamp\www\affiliate\test.php on line 150
Warning: Division by zero in C:\wamp\www\affiliate\test.php on line 151
any ideas?
cheers
Luke