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 image is properly detected as image, with dimensions of 470x612
- MIME validated as image/jpeg - source file is an image image_src_x : 470 image_src_y : 612
The first image is created, but resizing doesn't happen because the created image would be smaller than the original image. Use image_ratio rather than image_ratio_no_zoom:
- file_dst_pathname : C:\wamp64\www\loladev/trombi/praxiling/miniatures/\agent_1-07-09-2018.jpg - resizing... calculate y size image_src_x y : 470 x 612 image_dst_x y : 170 x 221 cancel resizing, as it would shrink the image!
The second image is created,but is not resized as the new image size would be the same as the old image size:
- file_dst_pathname : C:\wamp64\www\loladev/trombi/praxiling/hd/\agent_1-07-09-2018.jpg - resizing... calculate y size image_src_x y : 470 x 612 image_dst_x y : 470 x 612Reply
The image is properly detected as image, with dimensions of 470x612
- MIME validated as image/jpeg
- source file is an image
image_src_x : 470
image_src_y : 612
The first image is created, but resizing doesn't happen because the created image would be smaller than the original image. Use image_ratio rather than image_ratio_no_zoom:
- file_dst_pathname : C:\wamp64\www\loladev/trombi/praxiling/miniatures/\agent_1-07-09-2018.jpg
- resizing...
calculate y size
image_src_x y : 470 x 612
image_dst_x y : 170 x 221
cancel resizing, as it would shrink the image!
The second image is created,but is not resized as the new image size would be the same as the old image size:
- file_dst_pathname : C:\wamp64\www\loladev/trombi/praxiling/hd/\agent_1-07-09-2018.jpg
- resizing...
calculate y size
image_src_x y : 470 x 612
image_dst_x y : 470 x 612