Skip to content
This repository has been archived by the owner on Nov 4, 2019. It is now read-only.
/ pHash-lib Public archive
forked from hszcg/pHash-0.9.6

pHash-0.9.6 was released at 2013-04-23, but there are 2 major problems for certain usage, so I patched

License

Notifications You must be signed in to change notification settings

toy/pHash-lib

 
 

Repository files navigation

pHash-0.9.6-patches

pHash-0.9.6 was released at 2013-04-23, but there are 2 major problems for certain usage, so I patches:

  1. Compatible with new PHP version (Compile/Install passed).
  2. Change ph_dct_imagehash() function to return hash string for further operation.

Installation

Ubuntu

1. pHash

$ sudo apt-get install libavformat-dev libmpg123-dev libsamplerate-dev libsndfile-dev
$ sudo apt-get install cimg-dev libavcodec-dev ffmpeg libswscale-dev
$ cd pHash-0.9.6a
$ ./configure
$ make && sudo make install

2. PHP binding

$ cd bindings/php
$ phpize
$ ./configure LIBS="-lpthread"
$ make && sudo make install
$ sudo vi /etc/php5/conf.d/pHash.so
extension=pHash.so
$ sudo php5enmod pHash
$ php -m
pHash

Reference

  1. https://github.com/lucidix/phash/commit/5be2d454c932152e9b2395e21f97a008c6bd8766
  2. eaccelerator/eaccelerator#33
  3. http://serverfault.com/questions/491730/compile-phash-on-centos-php-extension

License

Same as pHash, GPL-3.0.

About

pHash-0.9.6 was released at 2013-04-23, but there are 2 major problems for certain usage, so I patched

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 65.1%
  • C 19.7%
  • C++ 9.2%
  • PHP 5.1%
  • Java 0.4%
  • C# 0.3%
  • Awk 0.2%