The phash package

[Tags:gpl, library, test]

See for more info. Note that you must have libphash installed on your system to use this library. Check your system library.

[Skip to Readme]


Versions 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5
Dependencies base (>=4.6 && <4.9) [details]
License GPL-3
Copyright Copyright: (c) 2014 Michael Xavier
Author Michael Xavier <>
Maintainer Michael Xavier <>
Stability Unknown
Category Data
Home page
Bug tracker
Source repository head: git clone
Uploaded Fri Jul 3 18:13:46 UTC 2015 by MichaelXavier
Downloads 873 total (14 in the last 30 days)
0 []
Status Docs not available [build log]
All reported builds failed as of 2015-11-13 [all 5 reports]


  • Data
    • Data.PHash
      • Data.PHash.Image
      • Data.PHash.Types



Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees

Readme for phash

Readme for phash-0.0.5

phash: Haskell bindings to pHash, the open source perceptual hash library

Build Status

PHash is a library for generating perceptual hashes of media files. These bindings currently only support images. You can compare these hashes to detect visually similar images.

Installation Notes

Note that this library does not come bundled with the source code for pHash. You must install that yourself. Your package manager may have it available as libphash. If that is not available, you can install it from source from


import Data.PHash

main = do
  Just h1 = imageHash "somefile.jpg"
  print h1
  print =<< imagesSimilar "somefile.jpg" "similarfile.jpg" reasonableThreshold
  where reasonableThreshold = 15


All credit goes to the original pHash authors. For more information about pHash visit