$flac =
new getid3_flac($this->getid3
);
$flac->
setStringMode(base64_decode($ThisFileInfo_ogg_comments_raw[$i]['value'
]));
$flac->
parsePICTURE();
$info['ogg'
]['comments'
]['picture'
][] =
$flac->getid3->info
['flac'
]['PICTURE'
][0
];
unset($flac);
} elseif ($ThisFileInfo_ogg_comments_raw[$i]['key'
] == 'COVERART'
) { $data =
base64_decode($ThisFileInfo_ogg_comments_raw[$i]['value'
]);
$this->
notice('Found deprecated COVERART tag, it should be replaced in honor of METADATA_BLOCK_PICTURE structure'
);
/** @todo use 'coverartmime' where available */
$imageinfo = getid3_lib::
GetDataImageSize($data);
if ($imageinfo === false || !
isset($imageinfo['mime'
])) { $this->
warning('COVERART vorbiscomment tag contains invalid image'
);
continue;
} $ogg =
new self($this->getid3
);
$ogg->
setStringMode($data);
$info['ogg'
]['comments'
]['picture'
][] = array
( 'image_mime' =>
$imageinfo['mime'
],
'datalength' =>
strlen($data),
'picturetype' => 'cover art',