On Sun, Nov 23, 2003 at 12:59:44AM -0300, Gustavo Sverzut Barbieri wrote:
>  --- 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:

Well, it's not /that/ slow, and it does pretty much guarantee
uniqueness... we use it elsewhere I'm pretty sure. It doesn't matter
if it's md5, just a unique hash.

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

Well, we can only show one image; I guess we could just jump to the
end of the list, but we only get a array of images anyway.


-------------------------------------------------------
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