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.
if ($handle->uploaded)
{ // OK - the temporary file has arrived on the server
$handle->file_new_name_body = $new_pic_name;
$handle->image_resize = true;
$handle->image_ratio_y = true;
$handle->image_x = 450;
$handle->allowed = array('image/*');
very similar to your example but the picture ratio when loaded is not correct - it appears squashed in the vertical - any ideas?
Regards. Patrick. PS. I've downloaded the latest version 0.29.Reply
I am using
very similar to your example but the picture ratio when loaded is not correct - it appears squashed in the vertical - any ideas?
Regards.
Patrick.
PS. I've downloaded the latest version 0.29.