22 $ThisFileInfo[
'fileformat'] =
'jpg';
23 $ThisFileInfo[
'video'][
'dataformat'] =
'jpg';
24 $ThisFileInfo[
'video'][
'lossless'] =
false;
25 $ThisFileInfo[
'video'][
'bits_per_sample'] = 24;
26 $ThisFileInfo[
'video'][
'pixel_aspect_ratio'] = (float) 1;
28 fseek($fd, $ThisFileInfo[
'avdataoffset'], SEEK_SET);
33 $ThisFileInfo[
'video'][
'resolution_x'] = $width;
34 $ThisFileInfo[
'video'][
'resolution_y'] = $height;
36 if (version_compare(phpversion(),
'4.2.0',
'>=')) {
38 if (function_exists(
'exif_read_data')) {
41 $ThisFileInfo[
'jpg'][
'exif'] = exif_read_data($ThisFileInfo[
'filenamepath'],
'',
true,
false);
44 $ThisFileInfo[
'error'][] = strip_tags(
$errors);
45 unset($ThisFileInfo[
'jpg'][
'exif']);
51 $ThisFileInfo[
'warning'][] =
'EXIF parsing only available when '.(GETID3_OS_ISWINDOWS ?
'php_exif.dll enabled' :
'compiled with --enable-exif');
57 $ThisFileInfo[
'warning'][] =
'EXIF parsing only available in PHP v4.2.0 and higher compiled with --enable-exif (or php_exif.dll enabled for Windows). You are using PHP v'.phpversion();
65 unset($ThisFileInfo[
'fileformat']);