class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
more info about the class
$new_w=intval($_REQUEST['w']); $new_h=intval($_REQUEST['h']); $EB['gnt']= new Upload($_FILES['tuUploadFile']); if ($EB['gnt']->uploaded) { $EB['gnt']->image_resize = true; $EB['gnt']->image_x = $new_w; $EB['gnt']->image_y = $new_h; .........
resize works using the default value and some random value.. but not with all.
ex.
original filesize 1229*817
resized to 620*620 -> fail
resized to 120*100-> works
using this code
help! :D