Skip to content

Smartcrop with width or height littler than 32 not working #178

@rafaelsq

Description

@rafaelsq
$ docker run --rm -p 9000:9000 h2non/imaginary -enable-url-source
$ curl http://localhost:9000/smartcrop?width=31&height=31&type=webp&url=https://camo.githubusercontent.com/bcb3b2bd343c3c85aaf6094e51c6178bbe239a32/687474703a2f2f7331342e706f7374696d672e6f72672f3874683731613230312f696d6167696e6172795f776f726c642e6a7067
{"message":"Error while processing the image: shrink: parameter vshrink not set","code":1}

but if you increment the with to 51 or the height to 32, it will work.

any ideia why?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions