imagick.pingimagefile(3) php man page | unix.com

Man Page: imagick.pingimagefile

Operating Environment: php

Section: 3

IMAGICK.PINGIMAGEFILE(3)						 1						  IMAGICK.PINGIMAGEFILE(3)

Imagick::pingImageFile - Get basic image attributes in a lightweight manner

SYNOPSIS
bool Imagick::pingImageFile (resource $filehandle, [string $fileName]) DESCRIPTION
This method can be used to query image width, height, size, and format without reading the whole image to memory. This method is available if Imagick has been compiled against ImageMagick version 6.2.9 or newer. PARAMETERS
o $filehandle - An open filehandle to the image. o $fileName - Optional filename for this image. RETURN VALUES
Returns TRUE on success. EXAMPLES
Example #1 Using Imagick.pingImageFile(3) 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); ?> SEE ALSO
Imagick.pingImage(3), Imagick.pingImageBlob(3), Imagick.readImage(3), Imagick.readImageBlob(3), Imagick.readImageFile(3). PHP Documentation Group IMAGICK.PINGIMAGEFILE(3)
Related Man Pages
image2wbmp(3) - php
imagick.optimizeimagelayers(3) - php
imagick.getiteratorindex(3) - php
imagick.pingimagefile(3) - php
imagick.whitethresholdimage(3) - php
Similar Topics in the Unix Linux Community
Opening a file during FTP
Getting image properties
Unable to open uploaded image
Installing Imagick
Mac. PHP fopen() does not create a file. Permissions.