我使用PHP來調整大小和裁剪圖像。然而,裁剪後的圖像文件比原始文件大(在某些情況下要大得多)。我甚至嘗試不裁剪(複製原始圖像),但所得到的尺寸比原始圖像多。php複製圖像增加文件大小
$ImageName = '/IMAGES/testImage.jpg';
//Download the Image File
$base_url = 'https://image.jimcdn.com/app/cms/image/transf/none/path/sa6549607c78f5c11/image/ia62ed3191fcc424f/version/1457278719/athens-european-best-destinations.jpg';
$image_size = getimagesize($base_url);
$image_width = $image_size[0];
$image_height = $image_size[1];
$src_image = imagecreatefromjpeg($base_url);
//Copy Image Object To File
imagejpeg($src_image, $ImageName, 100);
我覺得這不是OP的想法。他想問一下原始圖像有什麼不同的100%質量。 –