ebess / advanced-nova-media-library

A Laravel Nova field for displaying, creating, updating and ordering a Spatie Media Library model.
587 stars 288 forks source link

way to add width and height of image in cropper #170

Open saqueib opened 4 years ago

saqueib commented 4 years ago

I want to add width and height of cropped image, is it supported. I did checked https://github.com/timtnleeProject/vuejs-clipper#clipper-basic but there is no option for it.

I don't want to use conversion from media library since it will create a new image, If I can just set the size I want in crop and image is resized that will be great.

bogdan-kocic commented 1 year ago

Have anybody found solution for this problem? Only now except vuejs-clipper we are using vue-advanced-cropper https://advanced-cropper.github.io/vue-advanced-cropper/components/cropper.html#props After some research I found that the croppingConfigs method is related only to stencil-prop single property of vue-advanced-cropper component. Where that prop is for aspect ratio. There is another property called stencile-size that is related as the name says to stencile size but advanced media library croppingConfigs doesn't affect that property.