Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2211] Android: Ti.UI.createImageView will not load large JPG

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2013-02-05T23:56:53.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterPete Berry
AssigneeShak Hossain
Created2013-01-09T13:26:58.000+0000
Updated2016-03-08T07:41:12.000+0000

Description

*Problem description* Large and small files display fine on the Android emulator. Small files display fine on an Android device. Large files will not display on the Android device. *Note* The attached file displays fine on the Android Emulator but not the Android Galaxy Nexus or Nexus 7: MyPicture.jpg is 3264x2248, 2.33 MB. *Test case*
var win1 = Ti.UI.createWindow({
	backgroundColor : 'blue'
});

var TheImage = Ti.UI.createImageView({
	image : '/images/MyPicture.jpg'
});

win1.add(TheImage);

win1.open();

Attachments

FileDateSize
MyPicture.jpg2013-01-09T13:26:58.000+00002448160
MyPictureSmall.jpg2013-02-08T19:25:35.000+000055998

Comments

  1. Nikhil Sharma 2013-02-05

    What TiSDK version are using? I tested with TiSDK 3.0.0.GA on android 4.1.1 and its working fine. Please provide the TiSDK version?
  2. Pete Berry 2013-02-06

    This was originally tested on TiSDK 3.0.0.GA and it DID NOT WORK. Seriously, honestly, I have witnesses! Best I can see nothing has changed on my development system, phone or tablet, but now it works fine! I tested all the way back to 2.1.0.GA. Very frustrating!!!! Thanks for looking into this... Must be your magic fingers ;-) Cheers, Pete
  3. Pete Berry 2013-02-08

    Further testing has shown that the problem can be reproduced on the Android Emulator with the following code:
       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! Please not that this was tested with TiSDK 3.0.2.v20130117100201 and 3.0.0.GA. Thank you, Pete
  4. Mostafizur Rahman 2013-12-08

    Hello, We have not heard back from you since you posted the issue. Not sure if this is still throwing error in your app. We tested this issue with your test code using the latest 3.1.3 GA. We can’t reproduce this issue in Ti SDK 3.1.3GA. It is most likely fixed. Please test your issue using the latest release and let us know your feedback. If we don't hear back, we will assume the issue is no longer valid and close it. *Testing Environment:* OS: MAC OS X 10.8.5 Ti SDK: 3.1.3GA Ti CLI: 3.3.0 Android SDK 2.3.3, 4.2.2 Android Device Thanks

JSON Source