Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Build hue histograms and color pies from png files.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 imghist.py
Octocat-spinner-32 readme.md
readme.md

imghist.py

This is a python script to generate hue histograms and color pies from color png images. Some sample output of this script is explained here:

http://tylerneylon.com/a/imghist/

installation

  1. Install pypng from here:

http://code.google.com/p/pypng/downloads/list

  1. Install pycairo from here:

http://cairographics.org/pycairo/

  1. Download or clone the python script from this github page:

https://github.com/tylerneylon/imghist

usage

./imghist.py [options] <input png> <output png>

For example, if you have a file named myImg.png, you could generate a color pie with surrounding hue histogram with this command:

./imghist.py -mboth -s600x600 myImg.png myHueHist.png

For more usage details, type:

./imghist.py -h
Something went wrong with that request. Please try again.