Images are being center cropped when resized before calculating hash. The sharp lib docs state that resize center crops images.
The solution is to call ignoreAspectRatio on the sharpjs resize function chain.
Cropping can cause a lot of issues when perceptual hashing.
Images are being center cropped when resized before calculating hash. The sharp lib docs state that
resizecenter crops images.The solution is to call
ignoreAspectRatioon the sharpjs resize function chain.Cropping can cause a lot of issues when perceptual hashing.