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.
Im testing this class with big image sizes. I have a image, 3.000 x 2.000 (4.8 mb file). When i Upload the image, it resizes ok, saves ok, but it's saved rotated to the left. If i upload the same image (same dimensions) but with less quality (300 kb) it works ok.
Im testing this class with big image sizes. I have a image, 3.000 x 2.000 (4.8 mb file). When i Upload the image, it resizes ok, saves ok, but it's saved rotated to the left. If i upload the same image (same dimensions) but with less quality (300 kb) it works ok.
Here's my code
$img->file_new_name_body = $padre;
$img->image_resize = true;
$img->image_resize_no_zoom_in = true;
$img->image_ratio = true;
$img->image_x = 2000;
$img->image_y = 1000;
$img->image_flip = null;
$img->image_rotate = null;
$img->process($dir);
if (!$img->processed)
echo $img->error;