EZ-Components

This commit is contained in:
Andreas Österreicher
2009-02-17 15:27:43 +00:00
parent 359c3c55c9
commit 0a8e90a8b3
572 changed files with 64490 additions and 0 deletions
@@ -0,0 +1,32 @@
<?php
require_once 'Base/src/base.php';
/**
* Autoload ezc classes
*
* @param string $className
*/
function __autoload( $className )
{
ezcBase::autoload( $className );
}
// Analyzation of the MIME type is done during creation.
$image = new ezcImageAnalyzer( dirname( __FILE__ ).'/toby.jpg' );
if ( $image->mime == 'image/tiff' || $image->mime == 'image/jpeg' )
{
// Analyzation of further image data is done during access of the data
echo 'Photo taken on '.date( 'Y/m/d, H:i', $image->data->date ).".\n";
}
elseif ( $mime !== false )
{
echo "Format was detected as {$mime}.\n";
}
else
{
echo "Unknown photo format.\n";
}
?>