example_serverinfo.json
and name it serverinfo.json
serverinfo.json
to reflect actual informationnodejs app.js
localhost:3000
or whatever port number you chose!The phash library may need to be compiled from source. On Ubuntu, the following commands will (typically) take care of that.
curl -O http://www.phash.org/releases/pHash-0.9.6.tar.gz
tar -xvzf pHash-0.9.6.tar.gz
cd pHash-0.9.6/
sudo apt install -y libsndfile1-dev libvips-dev libsamplerate0-dev libmpg123-dev cimg-dev ffmpeg
./configure --enable-openmp=yes --enable-video-hash=no --enable-audio-hash=no LDFLAGS='-lpthread'
(as only image hashing is needed here)`sudo ./configure
sudo make && make install
npm install phash-image