GithubHelp home page GithubHelp logo

Comments (5)

DWW256 avatar DWW256 commented on August 16, 2024 2

Might I suggest that, to cover all bases, you just automatically pick any image from the song folder based off the following priorities?

  1. Largest image with the file name cover.???, folder.???, or Folder.???
  2. Largest image with any other file name

And you should not just import jpeg and png, but also gif, webp, and maybe even avif if the libraries you're using support them. Make sure that it picks up both .jpg and .jpeg extensions for jpeg images if you're doing it that way.

from resonance.

nate-xyz avatar nate-xyz commented on August 16, 2024

Do you know if there's some kind of de facto standard for what album art is named in the folder? Typically I see cover.whatever but sometimes I see folder.whatever . Parsing the image file names becomes an issue when there's more than one cover, additional art or artist images in the folder as well.

from resonance.

nate-xyz avatar nate-xyz commented on August 16, 2024

I could definitely also implement crawling for art, I already have this functionality for MPRIS and discord art by looking up the MusicBrainz ID for a release and then using the cover art archive: https://coverartarchive.org/, but maybe I could scrape discogs for higher quality art?

from resonance.

werdahias avatar werdahias commented on August 16, 2024

I think lollypop uses cover.(jpg/png).
The exact implementation is here:

https://gitlab.gnome.org/World/lollypop/-/blob/master/lollypop/artwork_album.py

Maybe this helps

from resonance.

nate-xyz avatar nate-xyz commented on August 16, 2024

Yeah I think I'll probably just only look for cover.(jpg|png) in order to mitigate the complexity of trying to determine the right file

from resonance.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.