Menu

#11 Album cover in ID3

KTagit_0.7
open
5
2003-05-03
2003-05-03
No

I'll be great if you can add the ability to add album cover in
the ID3 tag.
The frame is ID3FID_PICTURE and the field ID3FN_DATA.
you can read it like this:

ID3_Frame* myFrame = myTag->Find(ID3FID_PICTURE);
ID3_Field* myField = myFrame->GetField(ID3FN_DATA);
const uchar* data = myField->GetRawBinary();
size_t size = myField->Size();

I've implement it in my Karamba version and that's working
well.
JPEG and BMP formats are supported.
Bye Cyril.

Discussion

  • Matt Rogers

    Matt Rogers - 2003-05-03

    Logged In: YES
    user_id=240972

    I'm assuming that writing the album cover works in almost the same
    way?

     
  • Bosselut Cyril

    Bosselut Cyril - 2003-05-03

    Logged In: YES
    user_id=436323

    Saving is like this:
    ID3_Tag myTag;
    myTag.Link("song.mp3"); // link to file id3_tag
    ID3_Frame* myFrame = myTag->Find(ID3FID_PICTURE);
    ID3_Field* myField = myFrame->GetField(ID3FN_DATA);
    myField->Set(data, size);
    myTag.Update(); // update the tag (no change are made without
    this)

    See the doc here: http://id3lib.sourceforge.net/api/index.html

     
  • Matt Rogers

    Matt Rogers - 2003-05-03

    Logged In: YES
    user_id=240972

    that's what I thought. Thanks for the idea!. I'll see if i can get in KTagit
    0.7

     
  • Kenny Smith

    Kenny Smith - 2003-05-13

    Logged In: YES
    user_id=597160

    you could use the freedesktop.org standard to find the covers
    (maybe?) iirc that is folder.jpg in the smae directory as the
    mp3 file or folder.png

     

Log in to post a comment.