You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I like to use Cropper to show previews of the cropped image as they would appear in an environment where the final image is displayed with the following css background-size: cover; background-position: center center;
Describe the solution you'd like
Extend the cropper-viewer -> resize property with "cover" and "contain"
Add a second property position where center center or other background-position values can be filled
Describe alternatives you've considered
Call CropperSelection.$toCanvas each change (debounced) and create a canvas with object-fit: cover
Additional context
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I like to use Cropper to show previews of the cropped image as they would appear in an environment where the final image is displayed with the following css
background-size: cover; background-position: center center;
Describe the solution you'd like
Extend the
cropper-viewer
->resize
property with "cover" and "contain"Add a second property
position
wherecenter center
or otherbackground-position
values can be filledDescribe alternatives you've considered
Call
CropperSelection.$toCanvas
each change (debounced) and create a canvas withobject-fit: cover
Additional context
The text was updated successfully, but these errors were encountered: