D25679: Implement writing of front cover in taglibwriter
Stefan BrĂ¼ns
noreply at phabricator.kde.org
Mon Mar 16 18:23:52 GMT 2020
bruns added inline comments.
INLINE COMMENTS
> taglibwriter.cpp:78
>
> +TagLib::String determineMimeTypeOfPicture(const QByteArray &pictureData)
> +{
https://doc.qt.io/qt-5/qmimedatabase.html#mimeTypeForData
> taglibwriter.cpp:85
> + pictureData.startsWith(QByteArray::fromHex("FFD8FFEE")) ||
> + pictureData.startsWith(QByteArray::fromHex("FFD8FFE1"))) {
> + return TagLib::String("image/jpeg");
This list is incomplete - there are also plain jpegs which start with a huffmann table, and Adobe apparent writes ones which start with an FFEE application marker.
REPOSITORY
R286 KFileMetaData
BRANCH
tagLibBinaryWrite
REVISION DETAIL
https://phabricator.kde.org/D25679
To: astippich, #baloo, bruns, mgallien, ngraham
Cc: kde-frameworks-devel, hurikhan77, lots0logs, LeGast00n, cblack, fbampaloukas, GB_2, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200316/02a54b82/attachment.html>
More information about the Kde-frameworks-devel
mailing list