(PECL imagick 2.0.0)
Imagick::pingImageFile — Get basic image attributes in a lightweight manner
This method can be used to query image width, height, size, and format without reading the whole image to memory. 이 메쏘드는 Imagick을 ImageMagick 6.2.9 이상으로 컴파일 했을 때만 사용할 수 있습니다.
An open filehandle to the image.
Optional filename for this image.
성공시에 TRUE를 반환합니다.
Example #1 Using Imagick::pingImageFile()
Opening a remote location
<?php
/* fopen a remote location */
$fp = fopen("http://example.com/test.jpg");
/* create new imagick object */
$im = new Imagick();
/* pass the handle to imagick */
$im->pingImageFile($fp);
?>