Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2479] Android: Large images selected from gallery are not getting displayed in imageView

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-04-08T20:37:44.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, defect
ReporterPete Berry
AssigneeShak Hossain
Created2013-02-08T19:54:34.000+0000
Updated2016-03-08T07:41:31.000+0000

Description

Large images not taken with the device's camera and selected from the gallery will not display in imageView:
var win1 = Ti.UI.createWindow({backgroundColor : 'blue'});
var TheImage = Ti.UI.createImageView({});
win1.add(TheImage);
win1.open();
Ti.Media.openPhotoGallery({success:function(e){TheImage.image=e.media;}});
Place the attached pictures in the directory "/sdcard/DCIM" then run the app and select "MyPictureSmall" from the gallery. Notice that shows on the screen. Running the app again, this time selecting "MyPicture", this one will not be displayed! Thank you, Pete

Attachments

FileDateSize
MyPicture.jpg2013-02-08T19:54:34.000+00002448160
MyPictureSmall.jpg2013-02-08T19:54:34.000+000055998

Comments

  1. Carter Lathrop 2013-04-08

    Tested on samsung galaxy s3 on 3.0.2GA pictures appeared normally. Could not reproduce.
  2. Mostafizur Rahman 2014-01-02

    Hello, I tested this this issue with the code below. I can’t reproduce this issue. It’s working fine for me. Please check this code with the latest Ti SDK Build and let me know if this problem persists.

    Test Environment

    Mac OS X 10.8.5 Ti SDK 3.2.0.GA Ti CLI 3.2.0 IOS 7.0.3 Android SDK: 4.2.2, Windows 7

    Test Code

       
       var win = Ti.UI.createWindow({
       	backgroundColor : '#000',
       	layout : 'vertical'
        
       });
        
       var frmgalary = Ti.UI.createButton({
       	title : 'Go_To_Galary',
       	color : '#000',
       	width : Ti.UI.SIZE,
       	height : Ti.UI.SIZE,
       	font : {
       		fontSize : 14,
       	},
       	top:10
       });
        
       win.add(frmgalary);
        
       var anImageView = Ti.UI.createImageView({
       	width : Ti.UI.SIZE,
       	height : Ti.UI.SIZE,
       	top : 20,
       });
       win.add(anImageView);
        
       frmgalary.addEventListener('click', function() {
       	Ti.Media.openPhotoGallery({
       		mediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO],
       		success : function(e) {
       			anImageView.image = e.media;
        
       		},
       		cancel : function() {
       		},
       		error : function(err) {
       		}
       	});
       });
        
        
       win.open();
       
    Thanks
  3. Shak Hossain 2014-01-15

    Closing since the issue can't be reproduced with TISDK 3.2GA.

JSON Source