Add thread support for resizing. ‘-j[NTHREADS]’ tells gifsicle to use up to NTHREADS threads to resize an input image. There are several caveats---multiple threads can be only used on unoptimized images. Thanks to Github user @wilkesybear.
Quashed several crashes and undefined behaviors. Thanks to Github users including @pornel, @strazzere, and @b0b0505.
Minor bug fixes.
Add --no-ignore-errors option.
Fix --crop issue with must-be-preserved frames that are out of the crop window.
Add --no-extensions (with the s) and document those options more.
Fix bug in interaction of --resize and --rotate reported by Michał Ziemba.
Update Windows build.
Add new resize sampling methods ‘mix’, ‘box’, ‘catrom’, ‘mitchell’, ‘lanczos2’, and ‘lanczos3’, selectable by ‘--resize-method’. The ‘catrom’ filter often gives good results; the slightly faster ‘mix’ method (a bilinear interpolator) is now the default. These new sampling methods consider all of the image’s input colors when shrinking the image, producing better, less noisy output for most images.
Add ‘--resize-colors’, which allows Gifsicle to enlarge the palette when resizing images. This is particularly important when shrinking images with small colormaps---e.g., shrinking a black-and-white image should probably introduce shades of gray.
Support extensions such as XMP4 in which extension packet boundaries matter. Reported by ‘ata4’.
Many bug fixes, especially to cropping. Thanks to Tumblr and to Bryan Stillwell, Tal Lev-Ami, "Marco," and others.
Add ordered dithering modes, which avoid animation artifacts. The default ordered dithering mode (‘--dither=ordered’) is a novel mode that combines some of the visual advantages of error diffusion with the artifact avoidance of ordered dithering.
Add halftone dithering (‘--dither=halftone’).
gifview: Improved cache memory management for better animations. Collect memory for old frames based on an explicit --memory-limit (default 40MB).
gifview: Add ‘--fallback-delay’ option, to specify a fallback delay for frames with delay 0. Thanks to Sung Pae.
Improve ‘-O2’: again, don’t refuse to optimize images with local color tables. Reported by Bryan Stillwell.
Greatly improve ‘--dither’ speed.
Report error when ‘-I’ is combined with ‘-b’. Reported by Frank Dana.
Frame selections also apply in batch mode. Reported by LOU Yu Hong Leo.
gifview: Add --min-delay option.
Improve -O3 a bit (although for some images, the new -O3 is bigger than the old).
gifsicle: Correct some optimizer bugs introduced in 1.59 that could lead to visually different output.
gifdiff: Add -w/--ignore-redundancy option.
gifview: Correct crash bug.
gifsicle/gifdiff: Correct occasionally odd error messages.
gifview: Make --disposal=background behavior look like Firefox.
gifview: Add ‘--title’ option, based on patch supplied by Andres Tello Abrego.
Include Makefile.bcc, from Stephen Schnipsel.
Rearrange source tree.
More warning fixes.
More fixes for spurious background warnings.
Changed background behavior. Hopefully the only user-visible effect will be fewer spurious warnings.
Fixed a bug that could corrupt output when optimizing images with ‘-O2’ that had more than 256 colors.
Added explicit ‘--conserve-memory’ option.
Try to conserve memory in gifsicle when working with huge images (> 20 megabytes of uncompressed data). May make gifsicle slower if you actually had enough memory to deal with the uncompressed data.
Added ‘--resize-width’ and ‘--resize-height’ options.
Why is it that Frenchmen are always telling me to delete the Clp_Parser immediately before calling exit()? Don’t they realize that exit() frees application memory just as well as free()? Are things different in France? More French, perhaps?
Gifdiff will work on very large images (better memory usage).
Gifview treats frame selection more sensibly. A frame selection just tells it which frame to start on.
Added a message to the manual page warning people to quote the ‘#’ character in frame selections. The interactive bash shell, for example, interprets it as a comment.
Changed behavior of ‘--no-logical-screen’. Now gifsicle will include all visible GIFs when calculating the size of the logical screen.
Got rid of spurious redundant-option warnings.
Fixed memory corruption bug in quantization. Found and fixed by Steven Marthouse <firstname.lastname@example.org>.
Fixed serious quantization bug introduced in 1.14: when reducing the number of colors, gifsicle would ignore a random portion of the colors in the old colormap.
Optimization bug fix: two adjacent identical frames will no longer crash the optimizer. Bug introduced in 1.14. That’s two for two: two "speed improvements" in 1.14, two bugs introduced!
Bug fix: Exploding the standard input results in files named ‘#stdin#.NNN’, as the documentation claims, not ‘<stdin>.NNN’.
Optimization improvement: the optimizer reorders colormaps in a slightly smarter way, which can result in smaller compression.
If a position option like ‘-p 0,5’ is followed by a multi-frame GIF (without frame specifications), then the position option places the animation as a whole, not each of its individual frames.
An unrecognized nonnumeric frame specification is now treated as a file name, so you can say ‘gifsicle #stdin#.000’, for example.
Gifview improvements: Now even images with local color tables can be "unoptimized" or animated.
‘--replace’ now preserves the replaced frame’s disposal as well as its delay.
‘gifsicle -I -’ reports "<stdin>" as the input file name.
Steven Marthouse <email@example.com> helped fix ‘Makefile.w32’ to enable wildcards in filenames under Windows. Requested by Mark Olesen <firstname.lastname@example.org>.
Bug fix/optimization improvement: Some images would include a transparent index that was not a valid color (it was larger than the colormap). Gifsicle formerly ignored these transparent indices. It doesn’t any longer; furthermore, it will generate those kinds of transparent index, which can mean smaller colormaps and smaller GIFs.
Speed improvements in optimization and colormap quantization.
Added ‘--no-warnings’ (‘-w’) option to inhibit warning messages. Suggested by Andrea Beiser <email@example.com>.
‘--info’ output can now be sent to a file with ‘-o’, just as with any other kind of output.
More specific error messages on invalid GIFs.
‘gifsicle --explode’ now generates filenames of the form ‘file.000 .. file.100’ rather than ‘file.0 .. file.100’, so you can use shell globbing like ‘file.*’ and automatically get the right order.
Added ‘--background’ option to gifview, so you can set the color used for transparent pixels. Suggested by Art Blair <firstname.lastname@example.org>.
Gifdiff is built by default on Unix.
Added ‘--install-colormap’ to gifview. Suggested by Yair Lenga <email@example.com>.
Gifsicle now exits with status 1 if there were any errors, status 0 otherwise. Before, it exited with status 1 only if there was a fatal error, or nothing was successfully output. The new behavior seems more useful. Problem reported by David Kelly <firstname.lastname@example.org>.
Made ‘--resize’ work better on animations (no more off-by-one errors).
Fixed bug in ‘--use-colormap’: If transparency was added to the new colormap, the transparent color index could later be used (incorrectly) as a real image color. This was particularly common if the image was dithered.
‘--dither’ now tries to mitigate "jumping dither" animation artifacts (where adjacent frames in an animation have different dithering patterns, so the animation shifts). It does an OK job.
Improvements to ‘--color-method=blend-diversity’.
No other changes from 1.10b1: Emil said it worked on Windows.
Changes to Windows port from Emil Mikulic <email@example.com>.
Moved to config.h-based configuration to simplify GIF library and Windows port.
Some CLP improvements.
Cropping an image now automatically recalculates the output logical screen, rather than retaining the logical screen of the uncropped image.
Improvement to colormap modification behavior: If it looks like a color reserved for transparency will be necessary, gifsicle will reserve a slot for it. This will reduce the likelihood that you ask for a colormap of size 64, say, and get one of size 128 (because gifsicle added a slot for transparency).
Fixed a serious bug in optimize.c introduced in 1.9b1: Optimizing GIFs which required local color tables could crash the program due to a buffer overrun. (I was adding the background to the output colormap without making sure there was room for it.)
Fixed an optimizer bug which could result in incorrect animations: background disposal was not handled correctly.
The optimizer now generates ‘--disposal=none’ instead of ‘--disposal=asis’ in certain situations, which can result in smaller animations. Suggestion by Markus F.X.J. Oberhumer <firstname.lastname@example.org>.
GIF library changes: cleaner, somewhat faster GIF reading code inspired by Patrick J. Naughton <email@example.com>, whose code is distributed with XV.
Made ‘--change-color PIXELINDEX color’ work, and ‘--change-color color PIXELINDEX’ illegal.
Many behavior fixes relating to background and transparency. Gifsicle would tend to create GIFs which looked as expected, but lost information internally; for example, a color value which was only used for transparency would be changed to black, no matter what the input color was. In some cases, gifsicle simply reports a warning now where it ignored information before. Problems reported by Markus F.X.J. Oberhumer <firstname.lastname@example.org>.
Better error messages are now given on redundant, ambiguous, or useless command-line options.
Options that affect GIFs on output (such as ‘--output’, ‘--optimize’) now behave more like other options: you should put them before the files they affect. (You may still put them at the end of the argument list if they should affect the last output file.) This should only affect people who used batch or explode mode in complex ways.
Gifsicle will not write a GIF to stdout if it’s connected to a terminal.
Fixed ‘--transform-colormap’ bug: commands like "thing 2" (ending in an integer) will work now.
Small fixes (in a gifsicle pipeline, error messages won’t be interleaved).
Added colormap canonicalization: If you pipe a GIF through ‘gifsicle -O’ or ‘-O2’, the output colormaps will be arranged in a predictable order. Feature suggested by Markus F.X.J. Oberhumer <email@example.com>.
Added ‘--transform-colormap’, which allows you to plug programs into gifsicle that arbitrarily change GIF files’ colormaps.
All ‘--change-color’ options now happen simultaneously, so you can safely swap two colors with ‘--change-color C1 C2 --change-color C2 C1’.
Colormap modifications are slightly more powerful (they don’t reserve a color for transparency if they don’t need one, and if a subset of the modified colormap is used, only that subset is output).
Fixed ‘--use-colormap’ bug: the last color in a used colormap would be ignored (it was reserved for transparency). Symptom: if you put a partially transparent image into the Web-safe palette, the result would never contain white.
When changing to a grayscale colormap, gifsicle now uses luminance difference to find the closest color. This gives better results for ‘--use-colormap=gray’ and the like.
Added Introduction and Concept Index sections to the gifsicle manpage.
The gifsicle package now uses automake.
Changes to support Win32 port thanks to Emil Mikulic <firstname.lastname@example.org>.
Makefiles: Added ‘make uninstall’ target, enabled ‘./configure”s program name transformations, made VPATH builds possible.
Fixed bug in gifview ‘--geometry’ option processing: ‘--geometry -0-0’ wasn’t recognized.
Fixed rare bug in GIF writing code: the last pixel in a frame could previously become corrupted.
- The optimizer can handle any input file, even one with local colormaps or more than 256 colors. If there are more than 256 colors, an optimal subset is placed in the global colormap.
- The global colormap is reordered so that some images can use a small initial portion of it, which lets them compress smaller.
- Bug fix: Images relying on background disposal are optimized correctly.
- ‘-O2’ never does worse than ‘-O1’.
- Made the ‘-O2’ heuristic better. Some other small changes and improvements here and there.
- The optimizer has been pretty extensively tested using gifdiff.
New program: gifdiff compares two GIFs for identical appearance. It is not built unless you give the ‘--enable-gifdiff’ option to ‘./configure’. It’s probably not useful unless you’re testing a GIF optimizer.
Robustness fixes in GIF library.
‘--transparent’ didn’t work. It does now.
Added ‘--background’ option. Fixed background processing so that an input background is reflected in the output GIF.
Re-fixed small bug with the interaction between per-frame options and frame selections.
Fixed bad bug in merge: If a global colormap from the source needed to be dumped into a local colormap in the destination, the pixel map was wrong, resulting in bad colors in the destination.
Fixed memory leaks. Changed memory usage pattern in gifsicle to release source image memory as soon as possible, resulting in a better memory profile. Both programs now keep images in compressed form for better performance.
Fixed bugs in gifread.c that corrupted memory when uncompressing some bad images.
Added debugging malloc library (‘./configure --enable-dmalloc’ to use it).
Added ‘--no-delay’ and ‘--no-disposal’ options, which should have been there all along.
‘--crop’ will not generate an image with 0 width or height, even if a frame is cropped out of existence.
Other performance improvements.
GIF comments are now printed out more carefully in ‘--info’: binary characters appear as backslash escapes. (Literal backslashes are printed as ‘\\’.)
New ‘--extension-info/--xinfo’ option.
Removed spurious warning about local colormaps when a ‘--colors’ option is in effect.
Replacing a named frame with another image now keeps the name by default.
Many changes to gifview. Added ‘--animate’, ‘--display’, ‘--geometry’, ‘--name’, ‘--help’ options, keystrokes, multiple GIFs on the command line, and a manual page.
Further improvements in optimizer; specifically, ‘-O2’ works better now -- it uses actual image data to look for an unused pixel value when there’s no transparency specified.
Greatly improved ‘--optimize”s performance on some images by changing the way frames were switched to ‘--disposal=background’. Problem noticed by David Hedbor <email@example.com>
Unrecognized extensions are now passed through without change. The ‘--no-extensions’ option (currently undocumented) removes all unrecognized extensions.
Bug fix in gifview: frame selections now prevent display of entire GIF.
Changed heuristic for diversity algorithm: never blend if there are 3 colors or less
Some optimizations to Floyd-Steinberg code
Renamed ‘--color-change’ to ‘--change-color’.
Added negative frame numbers. ‘#-N’ no longer means ‘#0-N’; it means the ‘N’th frame from the end (where ‘#-1’ is the last frame). You can use negative frame numbers in ranges as well (e.g., ‘#-5--1’).
Changed usage behavior on bad command lines.
Slight behavior change: Now, if you replace a frame (say frame #2), its delay value will be preserved in the replacement frame, unless you give an explicit delay. (Before, the replacement frame’s delay would be used, which was probably 0.)
Added ‘-S’ as synonym for ‘--logical-screen’.