Open fukhaos opened 10 years ago
Gone in the air. You can never capture it again. Save it before cropping for a rainy day.
Ah, sorry I misread your comments. It's soooo old module that I've not tested it for so long.
Hey , Yagitoshiro....Thanks, It Works :) :+1:
hey Yogitsohiro , module is not working when i am using camera image for cropping , it shows error "index0 requested with a size of 0". if you have any suggestion then i am waiting.
my code //**
var window = Ti.UI.createWindow({ backgroundColor : 'white' });
var ViewCropImage = Ti.UI.createImageView({ height : 100, width : 100, top : 10, borderColor : "black", });
window.add(ViewCropImage);
var label = Ti.UI.createLabel({ color : 'Black', text : 'click me' }); window.add(label);
// TODO: write your module tests here var cropimage = require('org.selfkleptomaniac.ti.mod.cropimage'); Ti.API.info("module is => " + cropimage);
if (Ti.Platform.name == "android") { window.addEventListener('click', function(){ Ti.Media.showCamera({ success:function(elem){ cropimage.cropper({ success:function(e){ Ti.API.info(e);//cropped image }, error:function(){alert('cropper error');}, cancel:function(){alert('croppe canceled');}, image:elem.media}, 300, 300); }, cancel:function(){alert('cancel');}, error:function(){alert('error');} }); }); }
window.open();
ok i'll check it out.
After pick the image and crop, nothing happens.