0
我嘗試上傳後旋轉上傳的圖像90度,我嘗試了imagerotate()
方法,但它不工作。無法旋轉上傳的圖像使用php
這裏是我的代碼:
$tmp = $_FILES['photoimg']['tmp_name'];
$path = "uploads/";
move_uploaded_file($tmp, $path."newfile.jpg");
$rotate = imagerotate($path."newfile.jpg", 90, 0);
imagejpeg($rotate);
imagedestroy($source);
imagedestroy($rotate);
任何幫助將greately感激,謝謝!