![]() Long story short: Fix the image mime type detection in puddletag, and the KDE thumbnailer should be happy. Ideally all mime type stuff in the codebase is switched to that, I imagine there are a few spots that need to be touched. Since we are using (Py)Qt anyway I did a quick test with QMimeDatabase::mimeTypeForData(QByteArray) and that seems to work better, it properly detected all images. Automatic batch import of metadata and cover art for multiple albums from. That module is deprecated starting with Python v3.11, so we have to switch in the future anyhow and may as well do it now. Kid3 is an open-source cross-platform audio tag. Click Select all albums with missing artwork, and then click. Album Art Downloader will go through your entire music library quite rapidly, looking for the artist name, album name, and whether or not the album already has artwork. But that failed to detect a mime type for 2 out of my 4 random JPG test files, but worked fine for all PNGs. Point the File Browser at your music library (C:UsersezukMusic above) and click the large Search button. When adding an image, we are using the imghdr module from the python 3 stdlib to guess the mime type from the first few bytes of the image data. Which brings me to the final point: Why isn't puddletag not always writing the mime type in the first place? Because the image mime type detection in puddletag seems to be borked. So in case of doubt it should be considered mandatory, and puddletag should always write it. ![]() The Vorbis wiki says it's optional ( An empty MIME string indicates type "image/"), while the FLAC spec says it's mandatory ( and the MIME type is mandatory.). Regardless of the above finding, I found conflicting information whether the mime type is mandatory. I haven't pinpointed the exact lines of code that cause this. FLAC files are always previewed, mime type present or not. Interestingly enough this only happens with OGG and not with FLAC, even though they both share the same thumbnailer code. ![]() If the image tag contains a mime type, the image is shown as preview exactly the same file but with the mime type removed and the preview is gone. Through empirical testing I found that OGG files are only properly thumbailed/previewed when it contains an explicit mime type for the image data. As far as I could gather is Dolphin using the audio-thumbnailer (in the case of Kubuntu 22.04 in version 21.12.3) from the KDE Input/Output (KIO) Extras library, which in turn uses TagLib (here v1.11.1) for the actual tag reading.
0 Comments
Leave a Reply. |