Skip to content

Commit

Permalink
Nits on manual.
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Feb 19, 2024
1 parent 09933aa commit a045819
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
24 changes: 13 additions & 11 deletions gifsicle.1
Original file line number Diff line number Diff line change
Expand Up @@ -1052,35 +1052,37 @@ is on and the colormap is changed, combinations of colors are used to
approximate missing colors. This looks better, but makes bigger files
and can cause animation artifacts, so it is off by default.
.Sp
Specify a dithering algorithm with the optional \fImethod\fR argument.
The default,
Specify a dithering method with the optional \fImethod\fR argument.
The default method,
.RB \(oq floyd-steinberg \(cq,
uses Floyd-Steinberg error
diffusion. This usually looks best, but can cause animation artifacts,
because dithering choices will vary from frame to frame. Gifsicle also
supports ordered dithering algorithms that avoid animation artifacts.
.RB \(oq atkinson \(cq,
uses Atkinson error diffusion, which is a variant of Floyd-Steinberg.
because dithering choices will vary from frame to frame.
The
.RB \(oq atkinson \(cq
method uses Atkinson error diffusion, which is a variant of Floyd-Steinberg.
It offers a more localized dithering pattern, which can be useful for
images with large areas of solid color.
Gifsicle also
supports ordered dithering methods that avoid animation artifacts.
The
.RB \(oq ro64 \(cq
mode uses a
method uses a
large, random-looking pattern and generally produces good results. The
.RB \(oq o3 \(cq,
.RB \(oq o4 \(cq,
and
.RB \(oq o8 \(cq
modes use smaller, more
methods use smaller, more
regular patterns. The
.RB \(oq ordered \(cq
mode chooses a good ordered
dithering algorithm. For special effects, try the halftone modes
method chooses a good ordered
dithering algorithm. For special effects, try the halftone methods
.RB \(oq halftone \(cq,
.RB \(oq squarehalftone \(cq,
and
.RB \(oq diagonal \(cq.
Some modes take optional parameters using commas. The halftone modes
Some methods take optional parameters using commas. The halftone methods
take a cell size and a color limit:
.RB \(oq halftone,10,3 \(cq
creates 10-pixel wide halftone cells where each cell uses up to 3
Expand Down
2 changes: 1 addition & 1 deletion src/quantize.c
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,7 @@ colormap_image_atkinson(Gif_Image *gfi, uint8_t *all_new_data,
for (k = 0; k < 3; ++k)
err[0][i].a[k] = random_values[ (j + k) % N_RANDOM_VALUES ];
}

kd3_build_xradius(kd3);

/* Do the image! */
Expand Down

0 comments on commit a045819

Please sign in to comment.