Search code examples
javascriptwebaudiomp3web-audio-api

Extract image from mp3 files inside browser using javascript


Is there any cross browser way to get embedded image(cover image) from mp3 or other audio files inside the browser using javascript?

All the tutorials talk about html audio tag. But not the image. Does anyone knows? Or should it be done inside the server (extracting image from mp3 + other audio formats).

Environment :- Python, django, JavaScript, web browsers.


Solution

  • This answer was build using comments on the question.

    @Ilya Khrustalev

    I think id3js lib do exactly what you need. Please check an example here:id3js

    @Brad

    This is what I use: github.com/Borewit/music-metadata-browser It's awesome... supports a ton of formats.