1GIFHISTO(1) GIFLIB Documentation GIFHISTO(1)
2
3
4
6 gifhisto - make a color histogram from GIF colr frequencies
7
9 gifhisto [-v] [-t] [-s width height] [-n image-number] [-b] [-h]
10 [gif-file]
11
13 A program to create histogram of number of pixels using each color. The
14 output can be formatted into a GIF histogram file, or as text file -
15 both go to stdout.
16
17 If no GIF file is given, gifhisto will try to read a GIF file from
18 stdin.
19
21 -v
22 Verbose mode (show progress). Enables printout of running scan
23 lines.
24
25 -t
26 Force output to be text file of the following form: (colormap size)
27 lines each containing two integers: number of times color appeared,
28 and color index. Lines are in increasing color index order. This
29 output can be fed directly to a sort program if ordering by color
30 frequency is desired.
31
32 The colormap picked is the one to be used for the image to generate
33 histogram for, as defined in GIF format.
34
35 -s width height
36 Size of GIF histogram file. The height of the histogram should be
37 power of 2 dividable by number of colors in colormap.
38
39 Width sets the resolution (accuracy if you like) of the histogram
40 as the maximum histogram bar is scaled to fit it.
41
42 -n image-number
43 Image number to test. Default is one.
44
45 -b
46 Zeros the background color count. As only linear scale bars are
47 supported and usually the background appears much more often then
48 other colors, deleting the background count will improve the
49 scaling of other colors.
50
51 -h
52 Print one line of command line help, similar to Usage above.
53
55 Gershon Elber
56
57
58
59GIFLIB 2 May 2012 GIFHISTO(1)