Closed imanborumand closed 3 years ago
hello thanks for create this lib
how i can change mp3 file album art picture? please help me :)
this code not work
tag, err := id3v2.Open("public/music/Siavash.mp3", id3v2.Options{Parse: true}) if tag == nil || err != nil { Core.Error400(c, "Error while opening mp3 file: ","") } defer tag.Close() artwork, err := ioutil.ReadFile("public/test.jpg") if err != nil { Core.Error400(c, "Error while opening mp3 file: ","") } pic := id3v2.PictureFrame{ Encoding: id3v2.EncodingUTF8, MimeType: "image/jpeg", PictureType: id3v2.PTBackCover, Description: "Front cover", Picture: artwork, } tag.AddAttachedPicture(pic)
Hello! What error do you get?
Closing as there was no response
hello thanks for create this lib
how i can change mp3 file album art picture? please help me :)
this code not work