class_mcImagick.inc.php
545 Bytes
<?php
class mcImagick {
private static $files = array();
public static function getData($param_file_path) {
if(file_exists($param_file_path)) {
$ncimage_Imagick = new Imagick($param_file_path);
$ncimage_data = array(
'height' => $ncimage_Imagick->getImageHeight(),
'width' => $ncimage_Imagick->getImageWidth(),
'properties' => $ncimage_Imagick->getImageProperties(),
'size' => $ncimage_Imagick->getImageSize(),
'type' => $ncimage_Imagick->getImageType(),
);
return $ncimage_data;
}
}
}