--- Aubin Paul <[EMAIL PROTECTED]> escreveu: > I would like to add
embedded image extraction to mmpython; the idea
> is
> pretty simple. Since id3v2 tags contain image data, we can write to
> the mmpython cache, and then use that for cover data.
> 
> Extracting the image itself is ridiculously easy:
> 
> from mmpython.audio import eyeD3
> id3 = eyeD3.Mp3AudioFile( i )
> images = id3.tag.getImages();
> name = md5(i) + '.jpg'

md5 is slow. maybe we can recriate the previous file place inside
mmpython cachedir? I mean:

  some/file/path.mp3 -> $MMPYTHON_CACHE/some/file/path.mp3


> for img in images:
>     img.writeFile(MMPYTHON_CACHEDIR,name=name)

I'm not aware of img.writeFile, but IMO you're all the images to the
same file? What's the point?

Gustavo

______________________________________________________________________

Yahoo! Mail: 6MB, anti-spam e antivírus gratuito! Crie sua conta agora:
http://mail.yahoo.com.br


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to