Jason Tackaberry wrote:
> On Fri, 2006-12-15 at 22:12 +0100, Duncan Webb wrote:
>> Ignore this, the problem is in the call:
>> src/audio/plugins/coversearch.py:
>> image = Image.open(cStringIO.StringIO(n.read()))
>>
>> Should be asking is there an imlib equivalent?
> 
> If n is a file object, I'm not sure why that isn't just Image.open(n),
> but in any case the imlib2 equivalent would be something like:
> 
>    image = imlib2.open_from_memory(n.read())

How do I now detect that it is an image?

item.image is a <kaa.imlib2.image.Image object at 0xaf78378c>

Before:
  if isinstance(item.image, Image.Image):
    image = osd.loadbitmap(item.image)

Duncan


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to