내가 imagick의 PHP 확장을 통해 관점에서 이미지를 왜곡하기 위해 노력하고있어 나는이 일을 위해 다음 코드 조각을 가지고 : 이미지iMagick 왜곡
$controlPoints = array(
0,0, 0,0,
0,$height, 0,$height,
$width,0, $width,$perspective_wrap,
$width,$height, $width,$hps
);
$im1->setImageMatte(true);
//Distort the image -- In perspective with the matrix given above
$im1->distortImage(Imagick::DISTORTION_PERSPECTIVE, $controlPoints, true);
리눅스 서버의 관점에서 왜곡하지만 난 창에 스크립트를 이동할 때 다음과 같은 오류가 발생하는 것 같다 호스팅 :
치명적인 오류 :
'인수 배열을 읽을 수 없습니다'라는 메시지와 catch되지 않은 예외 'ImagickException' 여기서 줄은 $ im1-> distortImage (Imagick :: DISTORTION_PERSPECTIVE, $ controlPoints, true)입니다.
두 플랫폼 모두에서 작동하도록 할 수있는 방법이 있습니까?