<?php
//11.811024
$image = imagecreatefromjpeg('test.jpg');
$rotate = imagerotate($image, 90, 0);
list($width, $height) = getimagesize('test.jpg');
// Content type
header('Content-Type: image/jpeg');
$image_p = imagecreatetruecolor($width * 11.811024, $height * 11.811024);
imagecopyresampled($image_p, $rotate, 0, 0, 0, 0, $width * 11.811024, $height * 11.811024, $width, $height);
imagejpeg($rotate);
它没有输出任何图像,但是当我注释掉imagecreatetruecolor
它时...为什么?我怎样才能解决这个问题?