-
-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v2.2.0] Cover extraction creates invalid files #3279
Comments
In the meantime, I seem to have found the cause of the issue: That behavior doesn't occur in earlier Liquidsoap development versions. (The last artifact tested without issue was commit 31cac52.) As an example, here's the header of an embedded JPEG file, in the original... ... and after the undesired UTF-8 recoding: According to the help file |
After a few more tries, I finally seem to have found a workaround! 😄 Fortunately, the previously mentioned setting is available after all, but under a different name. So, the UTF-8 recoding of the metadata can be disabled as follows: With this setting, cover art images will no longer be manipulated either, so the extracted PNG and JPEG files will be accurate and usable. This workaround helps me for the time being, but that doesn't fix the issue that reasonable UTF-8 recoding shouldn't change binary image metadata. |
…e cover art is not converted. Fixes: #3279
…e cover art is not converted. Fixes: #3279
I can confirm that the issue has been fixed! 👍 |
Describe the bug
With a previous Liquidsoap development version from mid-March it was easily possible to extract cover art from metadata using the
metadata.cover
function. Besides MP3 and OGG metadata, FLAC metadata also worked (see #2952) and the extracted PNG and JPEG files were accurate.In release version 2.2.0, the
metadata.cover
function only creates obviously invalid PNG and JPEG files that can't be displayed. Graphics software claim incorrect file headers.Interestingly, the created files are somewhat larger than the original embedded PNG and JPEG cover art graphics.
To Reproduce
Unfortunately, I don't have a Liquidsoap developer version from that time anymore, but the following code example created accurate PNG files:
Expected behavior
Valid PNG and JPEG files that match the cover art graphics embedded as metadata.
Version details
Install method
Install of official package 'liquidsoap_2.2.0-ubuntu-jammy-1_amd64.deb'
(also latest development packages)
The text was updated successfully, but these errors were encountered: