← Back to team overview

calibre-devs team mailing list archive

Re: Displaying Thumbnails

 

I just committed a change to the 0.7 branch to handle this. Now if you want to
use image paths instead of image data, do this:

class ImageWrapper(object):

    def __init__(self, image_path):
        self.image_path = image_path

and set the thumbnail to be ImageWrapper(path)

Kovid.

On Mon, May 17, 2010 at 11:30:37AM -0300, Timothy Legge wrote:
> I was looking at displaying thumbnails from the KOBO.  In the driver I had
> set the thumbnail to the path.  However, from what I understand I should be
> using the image itself.  I can do that (I suspect by loading the image in
> the driver).  However, won't reading them in ahead of time increase the
> memory usage.  They are not that big I guess...
> 
> Tim
> 
> 
> !DSPAM:3,4bf1534322491620855806!

> _______________________________________________
> Mailing list: https://launchpad.net/~calibre-devs
> Post to     : calibre-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~calibre-devs
> More help   : https://help.launchpad.net/ListHelp
> 
> 
> !DSPAM:3,4bf1534322491620855806!


-- 
_____________________________________

Dr. Kovid Goyal 
http://www.kovidgoyal.net
http://calibre-ebook.com
_____________________________________

Attachment: pgpIsXF7DoIhy.pgp
Description: PGP signature


Follow ups

References