Drupal modules for browsing and managing Fedora-based digital repositories.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

24 lines
591 B

<?php
// $Id$
/*
*
*
* This Class implements the methods defined in the STANDARD_IMAGE content model
*/
class Exiftool {
function Exiftool() {
}
function extractMetadata($parameterArray, $dsid, $file, $file_ext) {
$system = getenv('System');
$file_suffix = '_'. $dsid . '.xml';
$returnValue=TRUE;
$output=array();
exec('exiftool -X ' . escapeshellarg($file) . '', $output);
file_put_contents($file.$file_suffix, implode("\n", $output));
$_SESSION['fedora_ingest_files']["$dsid"] = $file . $file_suffix;
return TRUE;
}
}