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
See all posts Reply
if ($handle->uploaded) { $handle->image_resize = true; $handle->image_ratio_y = false; $handle->image_x = 760; $handle->image_y = 520; $handle->image_watermark = 'watermark.png'; $handle->image_watermark_x = -10; $handle->image_watermark_y = -10; $handle->file_name_body_add = "_nome"; $handle->mime_check = true; $handle->Process('imgsite/paredao/'); $handle->image_resize = true; $handle->image_ratio_y = false; $handle->image_x = 350; $handle->image_y = 350; $handle->image_contrast = 10; $handle->jpeg_quality = 70; $handle->file_name_body_add = "_nome"; $handle->Process('imgsite/paredao/thumbs/'); if ($handle->processed)
echo $handle->log;
$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 not function. i downloaded the last version. (class)
The file go to destiny but your dimensions (size) not changed.
The code is:
etc...
someone can helpe me??
marcus
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