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.
the code seems only work if you use image_ratio and declare both image_x and image_y,because in this case, the image still zoom out to 1000 pixel (the origin width pixel was 500) is that right?Reply
require_once('lib/class.upload.php'); $src = 'images/1234.jpg'; $foo = new upload($src); $foo->file_new_name_body = 'new'; $foo->image_resize = true; $foo->image_x = 1000; $foo->image_ratio_y = true; $foo->image_ratio_no_zoom_in = true; $foo->file_overwrite = true; $foo->process('uploads/');the code seems only work if you use image_ratio and declare both image_x and image_y,because in this case, the image still zoom out to 1000 pixel (the origin width pixel was 500)
is that right?