如何使用PHP“翻转”图像?

时间:2010-06-09 10:54:53

标签: php gd

  

可能重复:
  How to resize an image using PHP?

这是我尝试过的:

$image = "images/20100609124341Chrysanthemum.jpg"; 
$degrees = 40; 
// Content type 
header('Content-type: image/jpeg'); 
// Load 
$source = imagecreatefromjpeg($filename);
// Rotate 
$rotate = imagerotate($source, $degrees, 0);
// Output 
imagejpeg($rotate); 

......但我没有输出。谁能告诉我这有什么问题?

1 个答案:

答案 0 :(得分:2)