Back to the snippets index

Image information

( Anthony 15/6/2008 )

You can find the information about your image using the codes below.

IM code:

<?php
//Minimal information
echo "<pre>";
system("identify ../code/sunflower.jpg");
echo 
"</pre>";

// All available information
echo "<pre>";
system("identify -verbose ../code/sunflower.jpg");
echo 
"</pre>";
?>