Image: /home/pavel/.Emacs/Work/opensign.gif Format: GIF (CompuServe graphics interchange format) Geometry: 143x57 ... Page Geometry: 10x10+0+0 Eli, this is why you see small (10x10 points) picture. Emacs/libungif happily allocated small region of memory and then wrote the data somewhere... So, what should be done? The entry in etc/PROBLEMS is true and should be there. There is no way to test for patched version of libungif when compiling, because the real version used could be on different computer and we should test it on run-time. The author of this version did mistake by not incrementing minor version number so it is not possible. The second problem (Geometry) can be solved by this patch: --- xfns.c.~1.537.~ Tue Jan 22 16:16:44 2002 +++ xfns.c Thu Feb 7 22:32:55 2002 @@ -10161,8 +10161,8 @@ return 0; } - width = img->width = gif->SWidth; - height = img->height = gif->SHeight; + width = img->width = max (gif->SWidth, gif->Image.Left + gif->Image.Width); + height = img->height = max (gif->SHeight, gif->Image.Top + gif->Image.Height); /* Create the X image and pixmap. */ if (!x_create_x_image_and_pixmap (f, width, height, 0, &ximg, &img->pixmap)) I use it for about two weeks right now and do not see problems (because I use patched 4.1.0 libungif from SuSE). This patch should go to RC and HEAD. Without my patch: pavel@SnowWhite:~> LD_LIBRARY_PATH=/tmp/ROOT-4.1.0b1/lib/ /tmp/emacs-21.1.90/src/emacs -q -f auto-image-file-mode ~/.Emacs/Work/x1.gif Fatal error (11).Neoprávněný přístup do paměti (SIGSEGV) Wit my patch: pavel@SnowWhite:~> LD_LIBRARY_PATH=/tmp/ROOT-4.1.0b1/lib/ emacs -q -f auto-image-file-mode ~/.Emacs/Work/x1.gif it works. I will commit it in a moment. P.S. See http://www.janik.cz/tmp/e-mail.png for the picture of all images in this e-mail. -- Pavel Janík Use free-form input when possible. -- The Elements of Programming Style (Kernighan & Plaugher)