Skip to content

Support Multiple Crop Presets in File Uploader #829

@PinkChampagne17

Description

@PinkChampagne17

Is your feature request related to a problem? Please describe.

The jQuery Uploader supported multiple crop presets via comma-separated values in data-crop, allowing users to choose between different crop options in the UI:

data-crop="free,1:1,16:9,300x200 upscale,400x300 minimum"

There are the crop options when multiple presets are defined in jQuery Uploader:

Image

This feature is essential for upgrading from jQuery Uploader to the new File Uploader in our applications, but the new File Uploader only supports a single cropPreset value.

Describe the solution you'd like

Add support for multiple crop presets with the same capabilities as the jQuery version:

  • Multiple presets
  • Size constraints with upscale and minimum modifiers
  • The crop options when multiple presets are defined

Additional context
#666 (comment)
https://uploadcare.com/docs/uploads/file-uploader/#crop-config
https://uploadcare.com/docs/file-uploader/options/#crop-preset

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions