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.
Thank you for your inspiration. What I want was not what you told but I learned how to get original image sizes thanks to your post. What I actually want is:
Thank you for your inspiration. What I want was not what you told but I learned how to get original image sizes thanks to your post. What I actually want is:
if ( $handle->image_src_y > $handle->image_src_x ) { $handle->image_ratio_x = true; $handle->image_y = 80; } else { $handle->image_ratio_y = true; $handle->image_x = 80; }Thanks again,