APICPictureTypeLookup example

$parsedFrame['description']   = substr($parsedFrame['data']$frame_offset$frame_terminatorpos - $frame_offset);
                $parsedFrame['description']   = $this->MakeUTF16emptyStringEmpty($parsedFrame['description']);
                $parsedFrame['encodingid']    = $frame_textencoding;
                $parsedFrame['encoding']      = $this->TextEncodingNameLookup($frame_textencoding);

                if ($id3v2_majorversion == 2) {
                    $parsedFrame['imagetype'] = isset($frame_imagetype) ? $frame_imagetype : null;
                } else {
                    $parsedFrame['mime']      = isset($frame_mimetype) ? $frame_mimetype : null;
                }
                $parsedFrame['picturetypeid'] = $frame_picturetype;
                $parsedFrame['picturetype']   = $this->APICPictureTypeLookup($frame_picturetype);
                $parsedFrame['data']          = substr($parsedFrame['data']$frame_terminatorpos + strlen($frame_textencoding_terminator));
                $parsedFrame['datalength']    = strlen($parsedFrame['data']);

                $parsedFrame['image_mime']    = '';
                $imageinfo = array();
                if ($imagechunkcheck = getid3_lib::GetDataImageSize($parsedFrame['data']$imageinfo)) {
                    if (($imagechunkcheck[2] >= 1) && ($imagechunkcheck[2] <= 3)) {
                        $parsedFrame['image_mime']       = image_type_to_mime_type($imagechunkcheck[2]);
                        if ($imagechunkcheck[0]) {
                            $parsedFrame['image_width']  = $imagechunkcheck[0];
                        }
                        
Home | Imprint | This part of the site doesn't use cookies.