0
大家好我每次都有一個允許用戶旋轉圖像的按鈕。然而,每當用戶旋轉圖像(這是一個JPEG),質量就會變差。我如何防止這種情況發生?PHP圖像編輯:每次編輯後圖像質量都會變差
php文件
//create src image and grab destination image from folder then...
imagecopyresampled($new_image, $src_image, 0, 0, 0, 0, $width, $height, $width, $height);
$rotated_image = imagerotate($new_image, $angle, 0);
imagejpeg($rotated_image, $new_image_file_path, 100);