blob: 52c4fec23b3fb728d91c0fd085643043ed8edd0a [file] [log] [blame]
<?php
require_once 'tutorial_autoload.php';
$tutorialPath = dirname( __FILE__ );
$image = new ezcImageAnalyzer( $tutorialPath.'/img/imageanalysis_example_02.jpg' );
echo "Image data:\n";
echo "MIME type:\t{$image->mime}\n";
echo "Width:\t\t{$image->data->width} px\n";
echo "Height:\t\t{$image->data->height} px\n";
echo "Filesize:\t{$image->data->size} b\n";
$comment = ( $image->data->comment == '' ) ? 'n/a' : $image->data->comment;
echo "Comment:\t{$comment}\n";
?>