.jpg, .png, .bmp, .tiff' .tif, .jpeg, .gif, .eps, .pdf, .ai, .psd
I have been using this in PHP
Code: Select all
// Make sure image is actually an image
$limit = '-limit memory 16 -limit map 32 -limit area 64 -limit disk 128';
$call = "/usr/bin/identify $limit {$_FILES['Filedata']['tmp_name']}";
exec($call, $id_output, $id_status);
if($id_output[0]) { // Checks for identifying output string
doWhatever();
}
Thank you,
~Shawn