• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE refentry PUBLIC
3   "-//OASIS//DTD DocBook XML V4.1.2//EN"
4   "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" []>
5<refentry id='gifhisto.1'>
6<refentryinfo><date>2 May 2012</date></refentryinfo>
7<refmeta>
8<refentrytitle>gifhisto</refentrytitle>
9<manvolnum>1</manvolnum>
10<refmiscinfo class="source">GIFLIB</refmiscinfo>
11<refmiscinfo class="manual">GIFLIB Documentation</refmiscinfo>
12</refmeta>
13<refnamediv id='name'>
14<refname>gifhisto</refname>
15<refpurpose>make a color histogram from GIF colr frequencies</refpurpose>
16</refnamediv>
17
18<refsynopsisdiv id='synopsis'>
19
20<cmdsynopsis>
21  <command>gifhisto</command>
22      <arg choice='opt'>-v</arg>
23      <arg choice='opt'>-t</arg>
24      <arg choice='opt'>-s
25      		<replaceable>width</replaceable>
26      		<replaceable>height</replaceable></arg>
27      <arg choice='opt'>-n <replaceable>image-number</replaceable></arg>
28      <arg choice='opt'>-b</arg>
29      <arg choice='opt'>-h</arg>
30      <arg choice='opt'><replaceable>gif-file</replaceable></arg>
31</cmdsynopsis>
32</refsynopsisdiv>
33
34<refsect1><title>Description</title>
35
36<para>A program to create histogram of number of pixels using each
37color.  The output can be formatted into a GIF histogram file, or as
38text file - both go to stdout.</para>
39
40<para>If no GIF file is given, gifhisto will try to read a GIF file
41from stdin.</para>
42
43</refsect1>
44<refsect1><title>Options</title>
45
46<variablelist>
47<varlistentry>
48<term>-v</term>
49<listitem>
50<para>Verbose mode (show progress). Enables printout of running scan lines. </para>
51</listitem>
52</varlistentry>
53<varlistentry>
54<term>-t</term>
55<listitem>
56<para>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.</para>
57<para>The colormap picked is the one to be used for the image to
58generate histogram for, as defined in GIF format.</para>
59</listitem>
60</varlistentry>
61<varlistentry>
62<term>-s width height</term>
63<listitem>
64<para>Size of GIF histogram file.  The height of the histogram should be power of 2 dividable by number of colors in colormap.</para>
65<para>Width sets the resolution (accuracy if you like) of the histogram as
66the maximum histogram bar is scaled to fit it.</para>
67</listitem>
68</varlistentry>
69<varlistentry>
70<term>-n image-number</term>
71<listitem>
72<para>Image number to test.  Default is one.</para>
73</listitem>
74</varlistentry>
75<varlistentry>
76<term>-b</term>
77<listitem>
78<para>Zeros the background color count.  As only linear scale bars are
79supported and usually the background appears much more often then
80other colors, deleting the background count will improve the scaling
81of other colors.</para>
82</listitem>
83</varlistentry>
84<varlistentry>
85<term>-h</term>
86<listitem>
87<para>Print one line of command line help, similar to Usage above.</para>
88</listitem>
89</varlistentry>
90</variablelist>
91
92</refsect1>
93<refsect1><title>Author</title>
94
95<para>Gershon Elber</para>
96
97</refsect1>
98</refentry>
99