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 _______________________________________________ gimp-developer-list mailing list gimp-developer-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gimp-developer-list