Titanium

[TIMOB-2334] setting image to allow edit is broken on the ipad.

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:58:48.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0 M04
ComponentsiOS
Labelsdefect, gallery, imageview, ios, ipad, photo, resize
Reporterctredway
AssigneeBlain Hamon
Created2011-04-15T03:16:58.000+0000
Updated2011-04-17T01:58:48.000+0000

Description

on 3.2 using 1.5 images from the photo gallery cannot be resized.

code:
Titanium.Media.openPhotoGallery({

    success:function(event)
    {
        var cropRect = event.cropRect;
        var image = event.media;

        // set image view
        Ti.API.debug('Our type was: '+event.mediaType);
        if(event.mediaType == Ti.Media.MEDIA_TYPE_PHOTO)
        {
            imageView.image = image;
        }
        else
        {

        }

        Titanium.API.info('PHOTO GALLERY SUCCESS cropRect.x ' + cropRect.x + ' cropRect.y ' + cropRect.y  + ' cropRect.height ' + cropRect.height + ' cropRect.width ' + cropRect.width);

    },
    cancel:function()
    {
        var nm_dialog = Ti.UI.createAlertDialog({
            message: 'Canceled',
            buttonNames: ['Ok']
        });

        nm_dialog.show();

    },
    error:function(error)
    {
    },
    allowEditing:true,
//  popoverView:popoverView,
    arrowDirection:arrowDirection,
    mediaTypes:[Ti.Media.MEDIA_TYPE_VIDEO,Ti.Media.MEDIA_TYPE_PHOTO],
});

HD Ticket:
http://developer.appcelerator.com/helpdesk/view/53841">http://developer.appcelerator.com/helpdesk/view/53841

Comments

  1. Blain Hamon 2011-04-15

    Disabling arrowDirection because it was undefined with the sample code, image editing did show up. Going to verify again tomorrow.

  2. Jeff Haynie 2011-04-15

    (from [fdd98f13434697baf2281a2d79fc12fed272a342]) [#2334 state:fixed-in-qa] When coming from an editing, ignore mediaUrl, as that's the uncut image. https://github.com/appcelerator/titanium_mobile/commit/fdd98f13434697baf2281a2d79fc12fed272a342"> https://github.com/appcelerator/titanium_mobile/commit/fdd98f134346...

  3. Thomas Huelbert 2011-04-15

    confirmed on 3.2 ipad and 4.2 (3g) ipad using bugtest content
    Titanium SDK version: 1.5.0 (12/08/10 13:01 7b6b188)

JSON Source