136
Views
2
Comments
[Cropper Library] Pinching photo causes it to disappear
Question
Forge component by Labs
5
Published on 02 Oct 2019

I got the PhotoCropper working on an Android app I'm developing. I want people to upload a photo but crop it to a square ratio first. It works like a charm.


The problem is if I "pinch" or "pull" the photo in any way (generally to shrink or expand it), the photo disappears and I can't get it back. It just "goes white" and isn't there anymore. I understand that PhotoCropper UI wasn't designed to let you shrink/expand the picture and that's fine, but if someone using my app is used to applications allowing people to do this, they're probably going to try it.. and it would be fine if this action just did nothing... but it doesn't. The image disappears. You then have to re-upload the image to get it back. Is this a known bug? 

Rank: #28618

Brian Lorraine wrote:

I got the PhotoCropper working on an Android app I'm developing. I want people to upload a photo but crop it to a square ratio first. It works like a charm.


The problem is if I "pinch" or "pull" the photo in any way (generally to shrink or expand it), the photo disappears and I can't get it back. It just "goes white" and isn't there anymore. I understand that PhotoCropper UI wasn't designed to let you shrink/expand the picture and that's fine, but if someone using my app is used to applications allowing people to do this, they're probably going to try it.. and it would be fine if this action just did nothing... but it doesn't. The image disappears. You then have to re-upload the image to get it back. Is this a known bug? 


Same issue here.  The image disappear if I use two finger to pinch on the screen. 

Please fix the bug. Ideally,  it would be able to zoom,  rotate and crop.

Rank: #19735

Brian Lorraine wrote:

I got the PhotoCropper working on an Android app I'm developing. I want people to upload a photo but crop it to a square ratio first. It works like a charm.


The problem is if I "pinch" or "pull" the photo in any way (generally to shrink or expand it), the photo disappears and I can't get it back. It just "goes white" and isn't there anymore. I understand that PhotoCropper UI wasn't designed to let you shrink/expand the picture and that's fine, but if someone using my app is used to applications allowing people to do this, they're probably going to try it.. and it would be fine if this action just did nothing... but it doesn't. The image disappears. You then have to re-upload the image to get it back. Is this a known bug? 

Hi Brian,

I was facing the same problem. In my case, the solution was just put this code in the "Options" of the component.

"{""zoomable"":false}"