$NetBSD$

--- image.c.orig	1998-11-25 03:55:32.000000000 +0100
+++ image.c	2004-04-16 22:30:55.000000000 +0200
@@ -4,7 +4,6 @@
    form on Microsoft and Be systems.  */
 
 #include <errno.h>
-#include <error.h>
 #include <math.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -128,12 +127,12 @@
 
   /* Write out the result.  */
   strcpy (outname, name);
-  strcat (outname, ".gif");
+  strcat (outname, ".png");
   outfile = fopen (outname, "w");
   if (outfile == NULL)
-    error (EXIT_FAILURE, errno, "cannot open output file `%s'", outname);
+    exit (EXIT_FAILURE);
 
-  gdImageGif (im_out, outfile);
+  gdImagePng (im_out, outfile);
 
   fclose (outfile);
 
