Skip to content

Image can be cropped as dot with minimal size option #854

@IevgenNov

Description

@IevgenNov

Description

I setup uploadcare widget to have crop functionality with minimal size.
In the cropping interface i can drag one of the corners until i get the dot and interface allows me to save the image

Steps to reproduce

  1. Setup the widget with crop functionality and add minimum size restriction
<input
      data-crop="100x100 minimum"
      type="hidden"
      role="uploadcare-uploader"
      data-landscape-only="true"
    />
  1. Move the crop to the edge of the image which is being cropped.
  2. Drag one of the crop corners to the edge side

Expected result

Interface should not allow to reduce the image size lower than it is specified by the initial settings
image

Actual result

Interface shows dot as a selection of the cropping area and allows to save it
image

Environment

Mac OS Big Sur
Google Chrome Version 92.0.4515.131
uploadcare-widget ^3.11.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions