xyxiao001 / vue-cropper

A simple picture clipping plugin for vue
https://github.xyxiao.cn/vue-cropper/docs/vue3.html
MIT License
4.3k stars 695 forks source link

部分图片不能裁剪,打开后空白 #113

Closed kangxiaojun closed 6 years ago

kangxiaojun commented 6 years ago

报错信息如下: Uncaught ReferenceError: n is not defined at m (index.js?a9c4:712) at v (index.js?a9c4:718) at h (index.js?a9c4:615) at o (index.js?a9c4:576) at c (index.js?a9c4:588) at Function.S.getData (index.js?a9c4:1154) at Image.o.onload (index.js?a9c4:205)

xyxiao001 commented 6 years ago

能提供具体图片吗

xyxiao001 commented 6 years ago

或者说是哪一类的图片会这样

kangxiaojun commented 6 years ago

您好: 这个报错很奇怪,JPG格式的图片有些能裁剪,有些不能裁剪;

  我找到原因了,npm install后node_modules/vue-cropper/dist/index.js中的问题,把index.js格式化后第712行的n用var声明一下就不会报错了;

  附件中是上传报错的图片. 谢谢!

在 2018-05-10 18:17:12,"goodboy" notifications@github.com 写道:

或者说是哪一类的图片会这样

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

xyxiao001 commented 6 years ago

好的 我去看看