Skip to content

[Feature request] Specifying max width and height when cropping #461

Open
@diegotori

Description

@diegotori

Platforms

Web, Windows, macOS, Linux, iOS, Android

Description

We're trying to prevent the user from re-sizing/cropping images beyond a width and height. This should work as either an exact size requirement, or as a maximum width and height requirement.

Why

Right now, there's no visual way to indicate that the user's cropping or editing exceeds a bounded size, especially if we intend to upload images that require exact dimensions. Also, the cropping dimensions are represented in aspect ratios, thus they are not bound by physical size. As a result, we have to validate after the user finishes their edit, validate and display the results in a dialog if it fails validation.

Also, if a feature such as this one isn't planned, what's the best way to get the final image that the user selects in order to validate it before uploading it? In other words, when the user makes a change to the image, where can we latch onto in order to display UI that can guide the user to resizing it to either an exact size or a maximum one? Right now, I'm not sure if there's something that this library exposes that we can use to visually indicate to the user that their selection does not match an exact width and height, or exceeds it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions