Album cover isn't being added to the song file
See original GitHub issueThe album cover isn’t being added to the song file. Am I doing it wrong? And how would I use an image from a url?
const NodeID3 = require('node-id3')
let fs = require('fs');
let file = "./aPI2NJyzFZlc.128.mp3"
let tags = {
title: "Tomorrow",
artist: "Kevin Penkin",
album: "TVアニメ「メイドインアビス」オリジナルサウンドトラック",
APIC: "./cover.jpg",
TRCK: "27"
}
NodeID3.create(tags)
let success = NodeID3.write(tags, file)
NodeID3.write(tags, file, function(err, buffer) { })
console.log(success)
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
How to fix no album art in File Explorer on Windows 10
Open the Groove app and go to albums tab. Look for your song file there. Click the Edit Info button. If you don't...
Read more >Can't add an album art to a song in mp3 format
Hello I tried to add the album art to mp3 songs(Trying through different softwares). ... They shows an error message"This file isn't playable....
Read more >Can't manually add artwork to Music (iTunes for Mac)
I'm unable to manually add artwork to a song. The song file is MP3. I choose Get Info for the song, and have...
Read more >Solved: Adding Cover Art to Local Files
I got it to work by adding the cover artwork in itunes first and then transfering songs into spotify through local files and...
Read more >Can't Add Artwork in iTunes? Greyed Out? Here's How to Fix
Having issues adding Artwork to your iTunes Albums and Songs? We got you covered with our top tips to get your artwork back...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

No, a buffer is a
Bufferobject, which has the data of the image. (see https://nodejs.org/api/buffer.html) You have to download it first like thisYour code works for me, your cover.jpg is probably in a different directory?
You can download it and pass the buffer using