Comment 4 for bug 864615

Revision history for this message
Patrick Ulbrich (pulb) wrote :

Images don't seem to be affected, but all other media types.

Here is a snippet (by jtailor) to reproduce the problem:

import gnome.ui
import gnomevfs

path = "test.avi"

uri = gnomevfs.get_uri_from_local_path(path)
mime = gnomevfs.get_mime_type(uri)

thumbFactory = gnome.ui.ThumbnailFactory(gnome.ui.THUMBNAIL_SIZE_LARGE)
if thumbFactory.can_thumbnail(uri ,mime, 0):
    thumbnail = thumbFactory.generate_thumbnail(uri, mime)
    if thumbnail != None:
        thumbFactory.save_thumbnail(thumbnail, uri, 0)