RSS/Atom feed Twitter
Site is read-only, email is disabled

Naming of thumbnails in Gimp on Windows....

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

Naming of thumbnails in Gimp on Windows.... Ragnar Brynjúlfsson 26 Jan 15:49
  Naming of thumbnails in Gimp on Windows.... Mukund Sivaraman 26 Jan 16:00
Ragnar Brynjúlfsson
2012-01-26 15:49:18 UTC (about 13 years ago)

Naming of thumbnails in Gimp on Windows....

I'm new here, so Hi all. :)

I just finished a python script/plug-in called GIMP Book for managing multiple pages in GIMP 2.6 (I make comics in my free time, so it comes quite handy). It can be found at

Mukund Sivaraman
2012-01-26 16:00:31 UTC (about 13 years ago)

Naming of thumbnails in Gimp on Windows....

Hi Ragnar

On Thu, Jan 26, 2012 at 04:49:18PM +0100, Ragnar Brynjúlfsson wrote:

I'm new here, so Hi all. :)

I just finished a python script/plug-in called GIMP Book for managing multiple pages in GIMP 2.6 (I make comics in my free time, so it comes quite handy). It can be found at http://registry.gimp.org/node/25975 I developed it on Ubuntu, and it works fine on Ubuntu and Fedora, but fails on Windows.

I've narrowed the Windows problem down to the code that finds the thumbnails created by Gimp. It looks up the md5 hash of the path to the image, and then looks for that image in ~/.thumbnails/large or normal. The same code on Windows returns a hash that doesn't match the name of the thumbnail generated. For instance:

import urllib import hashlib
bla = urllib.quote("C:\g.xcf")
hashlib.md5("file://" + bla).hexdigest()

Returns eef9b62......something, but the thumbnail for C:\g.xcf is called e345adf8ffb47e9a1be0fa35aa457295.png

hashlib.md5("file:///C:/g.xcf").hexdigest()

'e345adf8ffb47e9a1be0fa35aa457295'

Kind regards,

Mukund