Page 1 of 1

slow loading jpg images

Posted: Fri Oct 28, 2011 6:20 pm
by adventuresofgreg
Hi: I have a stack running on an iPad, and the jpg URL images are loading very slowly. This is partially due to the Wifi connection on the iPad being slower than the ethernet on my desktop machine, but they load a LOT slower than the same URL images shown in the browser on the iPad. I am resizing the images in my stack - so maybe that has something to do with the slowness.

Any ideas on how I could speed that up? I need to show two, 1600 x 800 pixel images on a full iPad screen. Is there a way to cache the images in the background in advance?

thanks
Greg

Re: slow loading jpg images

Posted: Fri Oct 28, 2011 8:11 pm
by Mark
Hi Greg,

That's an interesting observation. Are you using LC 5? RunRev claims LC 5 to be 10 times faster with regard to graphics rendering. What happens if you include the picture in your standalone as a referenced image file?

Kind regards,

Mark

Re: slow loading jpg images

Posted: Fri Oct 28, 2011 8:20 pm
by adventuresofgreg
I'm running LC 4.6.0

I've used referenced image files and they draw very quickly, so I don't think that is the issue. The slowness is with loading the .jpg image from the URL. I have also tried to LOAD the urls in advance which is supposed to place them in memory (cache), but this only works on the OSX app - and does NOT work on iOS app.

Is there some other way to preload these .jpg ULRs into memory in iOS in advance?

Re: slow loading jpg images

Posted: Fri Oct 28, 2011 9:47 pm
by Mark
Hi,

How large are those files and how long does it take your app to download them?

Best,

Mark

Re: slow loading jpg images

Posted: Fri Oct 28, 2011 10:48 pm
by adventuresofgreg
about 2000 k each and 8 seconds to draw both images. If I could cache all of the URL's for these images, they would probably draw instantly.

Re: slow loading jpg images

Posted: Fri Oct 28, 2011 11:00 pm
by Mark
Hi,

2MB for a picture on a mobile device is really huge. Try using smaller pictures. 80K should be more than enough. My iPhone often needs a few seconds to download any file larger than a few K. 8 seconds for a 2MB picture doesn't seem so bad.

Kind regards,

Mark