[Gimp-developer] A simple (?) question...

David Gowers 00ai99 at gmail.com
Thu Apr 10 03:10:47 PDT 2008


Hi Torsten,

On Thu, Apr 10, 2008 at 6:50 PM, Torsten Neuer <tneuer at inwise.de> wrote:
> Hi Sven,
>
>
>  > On Wed, 2008-04-09 at 09:27 +0930, David Gowers wrote:
>  > > What you are talking about is a hash function. There is a string
>  > > hasher in GLib that should do what you want.
>  >
>  > The string hash function in GLib is not suitable for this job. Torsten
>  > doesn't want to hash a string, he is asking for a checksum over image
>  > data.
>
>  Yes, I discovered that myself, since the string hasher would have difficulties
>  with handling the binary data of the drawable passed on to the plugin.
Oh.
I had assumed that the glib string hasher worked similarly to the
Python string hasher, meaning that binary data was perfectly okay.

My mistake.


More information about the Gimp-developer mailing list