hyperlab / TiImageCropper

UNMAINTAINED: Cross platform image cropper for Titanium Mobile
Other
23 stars 9 forks source link

Image rotates by 90 degree on Android. #9

Open pravin-mindstix opened 8 years ago

pravin-mindstix commented 8 years ago

Hi, I am trying to upload image but after cropping image is rotating in 90 degree in Android device. on iOS is working fine. Also cancel event is not triggered for Android

Pleas help me to solve this issue.

here is my code.

imageCropper.open({
                        image : currentMedia,
                        size : 960,
                        error : function(e) {
                            log.error('[CROPPING ERROR] ' + JSON.stringify(e));
                        },
                        success : function(e) {
                            someImageView.image = e.image;
                        },
                        cancel : function(e) {
                            log.error("User cancel image cropping");
                            cancelImageSharing();
                        }
clemblanco commented 8 years ago

Same here

jonatansberg commented 8 years ago

We have used the following code on iOS before cropping to correct a similar issue:

var imageAsTaken = Ti.UI.createImageView({
    image: image
});
image = imageAsTaken.toImage();
imageAsTaken = null;

PRs are welcome :)