Skip to content

maxWidth/maxHeight not working with aspectRatio #143

Description

@anisabboud

Hello and thank you for this nice library.

I noticed that setting maxWidth/maxHeight and aspectRatio together doesn't work.
The image is cropped to the requested aspect ratio, but not shrunk to the specified width/height.

Specifying only one works (only aspectRatio => image cropped, only maxWidth/maxHeight => image shrunk).

Is that the intended behavior or a bug?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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