GIFHISTO(1)
π GIFHISTO(1) β the giflib glow-up π
okay bestie, welcome to the giflib corner of the manual, this one's called gifhisto and it's literally the color-pop girlie of the toolkit β¨
π NAME π
gifhisto β make a color histogram from GIF color frequencies π
β¨ SYNOPSIS β¨
gifhisto [-v] [-t] [-s width height] [-n image-number] [-b] [-h]
[gif-file]
π¦ DESCRIPTION π¦
so this program makes a histogram of how many pixels are using each color, like a headcount but for the palette π
the output can be formatted as a GIF histogram file, or as a text file β and both of those go to stdout, no cap π
if you don't hand it a GIF file, gifhisto will try to read a GIF file from stdin. it's giving flexible, it's giving resourceful π«Ά
π OPTIONS π
-vβ verbose mode (show progress). turns on the printout of running scan lines, so you can watch it work. main character behavior fr π₯-tβ force the output to be a text file of this exact form: (colormap size) lines, each one containing two integers β the number of times the color appeared, and the color index. the lines are in increasing color index order. this output can be fed directly to a sort program if you want it ordered by color frequency instead π
the colormap picked is the one to be used for the image you're generating the histogram for, as defined in the GIF format. periodt.
-s width heightβ size of the GIF histogram file. the height of the histogram should be a power of 2 divisible by the number of colors in the colormap π§
width sets the resolution (accuracy, if you like) of the histogram, because the maximum histogram bar gets scaled to fit it πΈ
-n image-numberβ image number to test. default is one. one!! not zero!! okay iconic π-bβ zeros the background color count. here's the tea: only linear scale bars are supported, and usually the background shows up way more often than the other colors, so deleting the background count will improve the scaling of all the other colors β¨-hβ print one line of command line help, similar to Usage above. short and sweet, we love a low-effort king π
π AUTHOR π
Gershon Elber π«Ά
that's the whole vibe bestie, go make some beautiful histograms π
GIFLIB Β· 2 May 2012 Β· GIFHISTO(1) β mwah, tysm for reading, slay ππ
β¨
π¦ where this page comes from
- fedora 44: giflib-utils 6.1.2-1.fc44 Β· MIT
- fedora 44: giflib-utils 6.1.3-2.fc44 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms