> On Wed, Jul 29, 2009 at 11:28 AM, Joe<
johannes.dielm...@googlemail.com> wrote:
> > I am also working on exact the same Project. I want Amarok to write
> > the Cover to the Mp3 file. So they will show up on my mobile.
> > [...]
> > Maybe someone get this to work or can give some hints why this does
> > not work.
>
> Hi Joe,
>
> here is an example how to add cover art to an MP3 file:
>
> from mutagen import id3, mp3
> file = mp3.MP3('test.mp3')
> imagedata = open('cover.png', 'rb').read()
> file.tags.add(id3.APIC(3, 'image/png', 3, 'Front cover', imagedata))
> file.save()
>
> --
> Lukas Lalinsky
Never mind. Your code works perfectly.