feat: support embedded album art covers - #556
Conversation
|
Good day. Very interested in your pull request. Album art support is very lacking in gonic. I built the project from the source code. Everything started successfully. However, I found the following error: when updating the list with the scan button in web interface, the program terminates with an error: I am not a developer, so I have not been able to find in what causes this error. Additionally, I have tried running the scan in the following configurations:
Covers in jpeg format. In all of these configurations, the error described above occurs |
|
Hi @Pikone, thanks for the report!
This should definitely not be happening with Audio files with no embedded cover had an issue where TagLib was reading an embedded cover tag but no image was set. I was able to reproduce this on my system, and I just pushed a commit that should fix this issue. Please download the updated source and see if this issue has been solved for you. |
Just built with the last commit - the error no longer occurs. All songs in my library are successfully scanned and the covers are displayed. The last change solved my problem. Thank you for your pull-request. Hopefully it will be accepted into the main repository branch. |
|
Agreed! Eagerly waiting for this to be accepted into the main branch 🙏 |
|
Hey, is there anything I could do to help with this? Does it need additional testing or anything? I could test on arm64. Would be super nice to see this merged. |
This is mostly done and waiting for sentriz to review. It's also dependent on sentriz/audiotags#2 to be merged before the PR can be finished, so we just have to wait until then. I may at some point deploy a Docker image from my branch that users could test on. If I end up doing that I'll post it here |
|
I ran docker build with your branch and it builds but when I try to start it, I get: For comparison I built an image with the current sentriz/master branch and that image works. |
|
@turtletowerz Is the Docker image for testing available yet? Excited for this PR to land! Big thanks to everyone working on this. |
|
What's the hold-up on this feature being rolled out? |
|
|
Eagerly waiting for this to work. |
|
hey @turtletowerz thanks for the effort here 👍 had to rework a bit since this would have exposed ot clients that all albums have covers, even when they don't leading to broken / 404 requests for users who have no embedded artwork. also, its important to prioritize folder artwork over embdeded (in cases where there's both) also, rescaling now happens at the time of request for the art, instead of in the scanner. since we don't know what size clients will request |
|
Thanks so much to all who worked on this. This is something that will make gonic the best out there Can we have a setting to prioritise the embedded art over folder art? I, for one, would definitely prefer that. |
|
this is now available on the :nightly tag, would be great to get some people testing. thanks! |
not sure it makes sense, reading covers from embedded artwork it quite expensive, and it adds a lot of overhead for uses who don't use embedded artwork if you have folder art as well as embedded art and wish to prioritise embedded art, I would recommend removing the folder art, or bulk renaming them to something else like cover.png.bak (which would be ignored) |
I just updated my Docker image tag to nightly and deployed it. I use the Tempo Android app to view my music library. The artwork does load, but there are some obvious issues. When I enable the "directories" option in Tempo (for non-album-sorted audio, which is what I want), the problem shows up:
I’ve tried rescanning my Gonic library in normal scan mode, but that didn’t fix it. I also tried rescanning from within the Tempo app, but no luck there either. So at the moment, artwork does work, but all tracks in a directory are stuck showing the image from the first track. |
|
oh interesting @BashBandito, i didn't know track level artwork was a thing. can you share an example release with track level art? |
I’m a bit confused by your comment. I thought the purpose of this embedded artwork PR was so it could display in track or directory mode. Are you saying this is actually meant for album mode instead? Because Navidrome already handles that. I use Gonic specifically so I can browse my music in directory mode on the Tempo app for Android, and I’ve been assuming this artwork support was intended for that use case since it appeared to be all that is missing from Gonic to make it complete. Could you clarify? |
|
ok thanks @BashBandito , it should be working now (both track level and album level embedded art) :nightly is building here note: you will probably need to |
|
I can now confirm that artwork is displaying correctly in music directory mode. Huge thanks to everyone who made this possible, this feature truly elevates the experience. With it, I can confidently say that Gonic is the best self-hosted music app out there. No more being locked into album mode just to view embedded artwork. Well done, and thank you all! |
|
I’m curious, would it be possible for artwork to also show up in the Artists section? For example, in Music Directory mode, I can see the embedded artwork for tracks and albums in the Tempo app, but nothing appears in the Artists section. Would it be possible for the Artists section to automatically display an image, perhaps by selecting a random embedded artwork from one of the artist’s tracks? |
- Fix to support stop at any position. - Fix click bounds.
This adds complete support for embedded album art for any format that TagLib supports.
I'm marking this as a draft because there are a few code considerations I would like to get input on before continuing:
The relevantaudiotagspackage changes need to be made tosentriz/audiotagsinstead of linking to my personal repo. I did this for testing reasons but it will be removed before this is actually committedAll of the embedded logic is shoved intotagcommon; not sure if this is appropriate or notcloses #11