Install findimagedupes on mac M1

Hi, I am having some issues in installing findimagedupes on my macbook M1 2020.

when i try to install it with go I get this error: go install gitlab.com/opennota/findimagedupes@latest

# github.com/rakyll/magicmime
go/pkg/mod/github.com/rakyll/magicmime@v0.1.0/magicmime.go:28:11: fatal error: 'magic.h' file not found
 #include <magic.h>
          ^~~~~~~~~
1 error generated.
# gitlab.com/opennota/phash
In file included from pHash.cpp:6:
In file included from go/pkg/mod/gitlab.com/opennota/phash@v1.0.3/c++/pHash/pHash.cpp:25:
In file included from go/pkg/mod/gitlab.com/opennota/phash@v1.0.3/c++/pHash/pHash.h:50:
go/pkg/mod/gitlab.com/opennota/phash@v1.0.3/c++/CImg/CImg.h:450:10: fatal error: 'png.h' file not found
Edited by Michele Butturini