I have a set of many songs, some of which have png
images in metadata, and I need to convert these to jpg
.
I know how to convert png
images to jpg
in general, but I am currently accessing metadata using eyed3
, which returns ImageFrame
objects, and I don't know how to manipulate these. I can, for instance, access the image type with
print(img.mime_type)
which returns
image/png
but I don't know how to progress from here. Very naively I tried loading the image with OpenCV, but it is either not a compatible format or I didn't do it properly. And anyway I wouldn't know how to update the old image with the new one either!
Note: While I am currently working with eyed3
, it is perfectly fine if I can solve this any other way.