Imagick::getImageProperties
(No version information available, might be only in CVS)
Imagick::getImageProperties — Returns the image properties
Descrizione
Questa funzione, al momento non è documentata; è disponibile soltanto la lista degli argomenti.
Questa funzione è SPERIMENTALE. Ovvero, il comportamento di questa funzione, il nome di questa funzione, in definitiva tutto ciò che è documentato qui può cambiare nei futuri rilasci del PHP senza preavviso. Siete avvisati, l'uso di questa funzione è a vostro rischio.
Returns all associated properties that match the pattern. If true is passed as second parameter only the property names are returned. This method is present if Imagick is compiled against ImageMagick 6.3.5-9 or later.
Elenco dei parametri
- pattern
-
The pattern for property names. Defaults to "*"
- only_names
-
Whether to return only property names
Valori restituiti
Returns an array containing the image properties or property names.
Esempi
Example#1 Using Imagick::getImageProperties():
An example of extracting EXIF information.
<?php
/* Create the object */
$im = new imagick("/path/to/example.jpg");
/* Get the EXIF information */
$exifArray = $im->getImageProperties("exif:*");
/* Loop trough the exif properties */
foreach ($exifArray as $name => $property)
{
echo "{$name} => {$property}<br />\n";
}
?>