23 fseek($fd, $ThisFileInfo[
'avdataoffset'], SEEK_SET);
26 $SVGheader = fread($fd, 32);
27 $ThisFileInfo[
'svg'][
'magic'] = substr($SVGheader, 0, 4);
28 if ($ThisFileInfo[
'svg'][
'magic'] ==
'aBcD') {
30 $ThisFileInfo[
'fileformat'] =
'svg';
31 $ThisFileInfo[
'video'][
'dataformat'] =
'svg';
32 $ThisFileInfo[
'video'][
'lossless'] =
true;
33 $ThisFileInfo[
'video'][
'bits_per_sample'] = 24;
34 $ThisFileInfo[
'video'][
'pixel_aspect_ratio'] = (float) 1;
39 $ThisFileInfo[
'video'][
'resolution_x'] = $ThisFileInfo[
'svg'][
'width'];
40 $ThisFileInfo[
'video'][
'resolution_y'] = $ThisFileInfo[
'svg'][
'height'];
44 $ThisFileInfo[
'error'][] =
'Did not find SVG magic bytes "aBcD" at '.$ThisFileInfo[
'avdataoffset'];
45 unset($ThisFileInfo[
'fileformat']);