$im1 = "spain 2003 060.jpg";
$im = imagecreate (30, 30);
$im = @imagecreatefromjpeg($im1);
$background_color = imagecolorallocate ($im2, 255, 255, 255);
$text_color = imagecolorallocate ($im2, 233, 14, 91);
imagestring ($im, 12, 20, 20,"", $text_color);
$i = imagepng ($im);
is the code I have, if you havn't already guess I am trying to get $im1 down to 30 by 30 pixels I have altered around the code many times, each time it comes up with an error or it just converts the image full size into png, how would I make it shrink the image? tia