Skip to content

Images are being cropped when resized to generate hash #11

Description

@kaylynb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions