zhanziyang/vue-croppa

Sometimes whole canvas goes white

Opened this issue · 1 comments

Any idea why that would happen, I have some dynamic initial image stuff and sometimes when image is moved rotated or edited anyway the whole canvas just goes white and the photo is lost. Has anyone experienced anything similar and do you have solution how to prevent it. And I can not make it reproducible 100% times.

Hey i have same issue

I have a dynamic image when it loads, i upload a new one and when i try to zoom the canvas goes white, i can reproduce it 100% of the time with some pictures

I get it with this image

https://cdn2.iconfinder.com/data/icons/professions/512/cook_woman_user-512.png

Edit:
So the bug is introduced when you are using initial-image prop, when you remove that prop it doesnt go white when zooming

Here a pen for reproducing it

https://codepen.io/jloracudris/pen/aeRvWM

Steps to reproduce:

  1. Save this image to your computer: https://ui-ex.com/images/mini-clip-avatar-1.png
  2. Open the pen, it will show you an initial image, try to upload the picture you downloaded in step 1
  3. when the new picture its uploaded try to zoom
  4. see the gray square in the canvas!

repeat all of the above but remove the initial image and it will work