Agontuk / vue-cropperjs

A Vue wrapper component for cropperjs https://github.com/fengyuanchen/cropperjs
MIT License
932 stars 225 forks source link

Can't see autoCrop Layout on image #119

Closed paker-zhang closed 2 years ago

paker-zhang commented 2 years ago

Hello, @Agontuk I got a problem with display autoCrop Layout. There is my example code.

I tried to lookup cropperjs and vue-cropperjs document, autoCrop default is true.

I'm not sure what wrong I have done, if you know anything about this, please let me know.

Thank you.

Agontuk commented 2 years ago

Your prop passing is wrong, it should be like this

<VueCropper
  ref="cropper"
  :src="image"
  :viewMode="1"
  :guides="true"
  :autoCrop="true"
  :autoCropArea="0.8"
/>

And use images that don't have cross origin issue

paker-zhang commented 2 years ago

Thanks for your help.