©
Dokumen ini menggunakan Manual laman web PHP Cina Lepaskan
(PECL imagick 2.0.0)
Imagick::pingImageFile — Get basic image attributes in a lightweight manner
$filehandle
[, string $fileName
] )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以上版本编译时可用。
filehandle
An open filehandle to the image.
fileName
Optional filename for this image.
成功时返回 TRUE
。
Example #1 Using Imagick::pingImageFile()
Opening a remote location
<?php
$fp = fopen ( "http://example.com/test.jpg" );
$im = new Imagick ();
$im -> pingImageFile ( $fp );
?>