略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: KTaglib_ID3v2_AttachedPictureFrame::getMimeType

2024-04-28

KTaglib_ID3v2_AttachedPictureFrame::getMimeType

(0.2.0)

KTaglib_ID3v2_AttachedPictureFrame::getMimeTypeReturns the mime type of the picture

说明

public KTaglib_ID3v2_AttachedPictureFrame::getMimeType ( void ) : string

Returns the mime type of the image represented by the attached picture frame.

Please notice that this method might return different types. While ID3v2.2 have a mime type that doesn't start with "image/", ID3v2.3 and v2.4 usually start with "image/". Therefore the method might return "image/png" for IDv2.3 frames and just "PNG" for ID3v2.2 frames.

Notice that even the frame is an attached picture, the mime type might not be set and therefore an empty string might be returned.

返回值

Returns the mime type of the image represented by the attached picture frame.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/id3v2attachedpictureframe.getmimetype.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3