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
$handle->image_resize = true; $handle->image_x = 60; $handle->image_ratio_y = 60;
$handle->image_resize = true; $handle->image_x = 60; $handle->image_y = 60; $handle->image_ratio_crop = true;
$handle->image_resize = true; $handle->image_x = 60; $handle->image_y = 60; $handle->image_ratio = true;
I'm trying to upload images so that the uploaded image is resized to stay in a 60 x 60 box without losing the original sizes.
I do:
Where is the error??
I wish that:
if width>height so $handle->image_x = 60;
if width<height so $handle->image_y = 60;
I don't want an image 60x60 but I wish an image that always is resized so that it's longer side is no more than 60px
Thank you