diff -uNr gifsicle-1.38-orig/src/support.c gifsicle-1.38/src/support.c --- gifsicle-1.38-orig/src/support.c 2003-02-12 05:55:35.000000000 +0900 +++ gifsicle-1.38/src/support.c 2003-07-08 10:39:38.000000000 +0900 @@ -365,30 +365,28 @@ if (!gfs) return; verbose_endline(); - fprintf(where, "* %s %d image%s\n", (filename ? filename : ""), - gfs->nimages, gfs->nimages == 1 ? "" : "s"); - fprintf(where, " logical screen %dx%d\n", + fprintf(where, "$gifsicle['filename']='%s'; $gifsicle['frames']=%d; ", filename, gfs->nimages); + fprintf(where, "$gifsicle['width']=%d; $gifsicle['height']=%d; ", gfs->screen_width, gfs->screen_height); - if (gfs->global) { +/* if (gfs->global) { fprintf(where, " global color table [%d]\n", gfs->global->ncol); if (colormaps) colormap_info(where, gfs->global, " |"); fprintf(where, " background %d\n", gfs->background); } if (gfs->comment) - comment_info(where, gfs->comment, " end comment "); - + comment_info(where, gfs->comment, "$gifsicle['comment'][]='"); +*/ if (gfs->loopcount == 0) - fprintf(where, " loop forever\n"); + fprintf(where, "$gifsicle['loop']=' -l'; "); else if (gfs->loopcount > 0) - fprintf(where, " loop count %u\n", (unsigned)gfs->loopcount); - - for (n = 0, gfex = gfs->extensions; gfex; gfex = gfex->next, n++) + fprintf(where, "$gifsicle['loop']=' -l %u'; ", (unsigned)gfs->loopcount); +/* for (n = 0, gfex = gfs->extensions; gfex; gfex = gfex->next, n++) if (extensions) extension_info(where, gfs, gfex, n); if (n && !extensions) - fprintf(where, " extensions %d\n", n); + fprintf(where, " extensions %d\n", n); */ } @@ -404,8 +402,7 @@ num = Gif_ImageNumber(gfs, gfi); verbose_endline(); - fprintf(where, " + image #%d ", num); - if (gfi->identifier) +/* if (gfi->identifier) fprintf(where, "#%s ", gfi->identifier); fprintf(where, "%dx%d", gfi->width, gfi->height); @@ -432,16 +429,20 @@ fprintf(where, " local color table [%d]\n", gfi->local->ncol); if (colormaps) colormap_info(where, gfi->local, " |"); } - - if (gfi->disposal || gfi->delay) { +*/ +/* if (gfi->disposal || gfi->delay) { fprintf(where, " "); if (gfi->disposal) - fprintf(where, " disposal %s", disposal_names[gfi->disposal]); + fprintf(where, " disposal %s", disposal_names[gfi->disposal]); */ if (gfi->delay) - fprintf(where, " delay %d.%02ds", - gfi->delay / 100, gfi->delay % 100); - fprintf(where, "\n"); - } + { + if (num == 0) + fprintf(where, "$gifsicle['delay']='"); + fprintf(where, " -d %d", gfi->delay); + fprintf(where, " [conv_filename].%03d", num); + if (gfs->nimages == (num + 1)) + fprintf(where, "';"); + } }