A
A
Alexey2020-11-16 21:33:02
Python
Alexey, 2020-11-16 21:33:02

How to get a picture of an Album or artist via metadata?

You need to get a picture as written above. using python. I tried different libraries but they are all the same.
You need to get an image in a variable.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2020-11-16
@graymstar

pip install eyeD3
The sacred script of eyeD3
A simple example:

import eyed3

audiofile = eyed3.load("2.mp3")

images = audiofile.tag.images
with open('1.jpg','wb+') as file:
  file.write(images[0].image_data)

5fb2cb690f99d108725939.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question