--- image_tiff.c.orig 2004-02-28 18:07:36.000000000 +0100 +++ image_tiff.c 2005-07-21 18:57:40.652945912 +0200 @@ -24,6 +24,10 @@ int w, h; long size; + static TIFFErrorHandler prev_handler = NULL; + + if (!prev_handler) prev_handler = TIFFSetErrorHandler (NULL); + tif = TIFFOpen(path, "r"); if (!tif) return 0;