Imagick::pingImageFile

(PECL imagick 2.0.0)

Imagick::pingImageFileGet basic image attributes in a lightweight manner

설명

bool Imagick::pingImageFile ( resource $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
/* 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);
?>

참고

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top