<?php
$path = "files/images/04.jpg";
$new_path = str_replace("../","",$path);
$source = imagecreatefromjpeg($path); //新建圖檔
/*
$org_info = getimagesize($path); //取得圖檔資訊,此為陣列[0]=width,[1]=height,[3]=width & height
$destination = imagecreatetruecolor($org_info[0],$org_info[1]); //新建一個新尺寸圖檔
imagecopyresampled($destination,$source,0,0,0,0,$org_info[0],$org_info[1],$org_info[0],$org_info[1]);//複製新建圖檔
*/
//旋轉圖片
$deg = 360 - (90*0);
$rotate_img = imagerotate($source, $deg, 0);
imagejpeg($rotate_img,$path,100); //暫存圖檔 品質為100,0~100
$i = $i+1;
$photo = 'room_photo'.$i;
?>
想請問為何我同一張圖片,經過$rotate_img = imagerotate($source, $deg, 0);後存檔,圖片會越變越小