【发布时间】:2011-08-21 20:31:59
【问题描述】:
我想旋转图像,但我似乎无法保持图像本身。
这就是我所拥有的:
// Content type
header('Content-type: image/png');
$image = 'http://mapning.com/img/plane.png';
$file = imagecreatefrompng($image);
// Rotate
$rotate = imagerotate($file, $angle, 0);
// Output
imagepng($rotate);
我做错了什么?
【问题讨论】:
标签: php image png rotation transparent