note 83305 deleted from function.imagick-pingimage by felipe
| From: | felipe@php.net | Date: | Fri, 23 May 2008 23:48:58 +0000 |
| Subject: | note 83305 deleted from function.imagick-pingimage by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-139671@lists.php.net to get a copy of this message | ||
Note Submitter: Eero Niemi (eero at eero dot info)
----
pingImage is effecient way to determine image attributes. It can dramatically speed up identifying
images, I noticed major speed-up (8x) with JPEG images.
Usage:
<?php
$file = 'foo.jpg';
$image = new Imagick($file);
$image->pingImage($file);
$image_info = $image->identifyImage();
?>