| 1 |
'\" t |
| 2 |
.\" Title: gifhisto |
| 3 |
.\" Author: [see the "Author" section] |
| 4 |
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/> |
| 5 |
.\" Date: 2 May 2012 |
| 6 |
.\" Manual: GIFLIB Documentation |
| 7 |
.\" Source: GIFLIB |
| 8 |
.\" Language: English |
| 9 |
.\" |
| 10 |
.TH "GIFHISTO" "1" "2 May 2012" "GIFLIB" "GIFLIB Documentation" |
| 11 |
.\" ----------------------------------------------------------------- |
| 12 |
.\" * Define some portability stuff |
| 13 |
.\" ----------------------------------------------------------------- |
| 14 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 15 |
.\" http://bugs.debian.org/507673 |
| 16 |
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html |
| 17 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 18 |
.ie \n(.g .ds Aq \(aq |
| 19 |
.el .ds Aq ' |
| 20 |
.\" ----------------------------------------------------------------- |
| 21 |
.\" * set default formatting |
| 22 |
.\" ----------------------------------------------------------------- |
| 23 |
.\" disable hyphenation |
| 24 |
.nh |
| 25 |
.\" disable justification (adjust text to left margin only) |
| 26 |
.ad l |
| 27 |
.\" ----------------------------------------------------------------- |
| 28 |
.\" * MAIN CONTENT STARTS HERE * |
| 29 |
.\" ----------------------------------------------------------------- |
| 30 |
.SH "NAME" |
| 31 |
gifhisto \- make a color histogram from GIF color frequencies |
| 32 |
.SH "SYNOPSIS" |
| 33 |
.HP \w'\fBgifhisto\fR\ 'u |
| 34 |
\fBgifhisto\fR [\-v] [\-t] [\-s\ \fIwidth\fR\ \fIheight\fR] [\-n\ \fIimage\-number\fR] [\-b] [\-h] [\fIgif\-file\fR] |
| 35 |
.SH "DESCRIPTION" |
| 36 |
.PP |
| 37 |
A program to create histogram of number of pixels using each color\&. The output can be formatted into a GIF histogram file, or as text file \- both go to stdout\&. |
| 38 |
.PP |
| 39 |
If no GIF file is given, gifhisto will try to read a GIF file from stdin\&. |
| 40 |
.SH "OPTIONS" |
| 41 |
.PP |
| 42 |
\-v |
| 43 |
.RS 4 |
| 44 |
Verbose mode (show progress)\&. Enables printout of running scan lines\&. |
| 45 |
.RE |
| 46 |
.PP |
| 47 |
\-t |
| 48 |
.RS 4 |
| 49 |
Force output to be text file of the following form: (colormap size) lines each containing two integers: number of times color appeared, and color index\&. Lines are in increasing color index order\&. This output can be fed directly to a sort program if ordering by color frequency is desired\&. |
| 50 |
.sp |
| 51 |
The colormap picked is the one to be used for the image to generate histogram for, as defined in GIF format\&. |
| 52 |
.RE |
| 53 |
.PP |
| 54 |
\-s width height |
| 55 |
.RS 4 |
| 56 |
Size of GIF histogram file\&. The height of the histogram should be power of 2 divisible by number of colors in colormap\&. |
| 57 |
.sp |
| 58 |
Width sets the resolution (accuracy if you like) of the histogram as the maximum histogram bar is scaled to fit it\&. |
| 59 |
.RE |
| 60 |
.PP |
| 61 |
\-n image\-number |
| 62 |
.RS 4 |
| 63 |
Image number to test\&. Default is one\&. |
| 64 |
.RE |
| 65 |
.PP |
| 66 |
\-b |
| 67 |
.RS 4 |
| 68 |
Zeros the background color count\&. As only linear scale bars are supported and usually the background appears much more often then other colors, deleting the background count will improve the scaling of other colors\&. |
| 69 |
.RE |
| 70 |
.PP |
| 71 |
\-h |
| 72 |
.RS 4 |
| 73 |
Print one line of command line help, similar to Usage above\&. |
| 74 |
.RE |
| 75 |
.SH "AUTHOR" |
| 76 |
.PP |
| 77 |
Gershon Elber |