Logo Search packages:      
Sourcecode: catfish version File versions  Download package

def catfish::catfish::get_thumbnail (   self,
  path,
  icon_size = 0,
  mime_type = None 
)
Try to fetch a small thumbnail.

Definition at line 713 of file catfish.py.

                                                              :
        """Try to fetch a small thumbnail."""

        md5_hash = md5.new('file://' + path).hexdigest()
        filename = '%s%s.png' % (self.folder_thumbnails, md5_hash)
        try:
            return gtk.gdk.pixbuf_new_from_file(filename)
        except:
            return self.get_file_icon(path, icon_size, mime_type)


Generated by  Doxygen 1.6.0   Back to index