91亚洲精品福利在线播放,欧美日韩国产在线人成app,天天躁日日躁疯人影院,sao虎视频最新网站入口,精品久久久久久中文字幕女

Imagick::pingImageFile

(PECL imagick 2, PECL imagick 3)

Imagick::pingImageFileGet basic image attributes in a lightweight manner

說(shuō)明

public Imagick::pingImageFile(resource $filehandle, string $fileName = ?): bool

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以上版本編譯時(shí)可用。

參數

filehandle

An open filehandle to the image.

fileName

Optional filename for this image.

返回值

成功時(shí)返回 true。

范例

示例 #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);
?>

參見(jiàn)

91亚洲精品福利在线播放,欧美日韩国产在线人成app,天天躁日日躁疯人影院,sao虎视频最新网站入口,精品久久久久久中文字幕女