Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Regular Contributor
sandeshmsg
Posts: 64
Registered: ‎06-16-2011
My Device: bold 9000, playbook

Image loading time .

Hello experts, I am developing gallery application. I am loading images from the device but they are very heavy in size so its taking lots of time to load the images . You have any suggestions to optimize the images dynamically or load only thumbnails ?

 

Thanks and regards,

Sandesh.

Developer
Levion
Posts: 137
Registered: ‎12-22-2010
My Device: Curve 8520

Re: Image loading time .

I am also interested in this. I have the same problem in my application. I am thinking about cropping/compressing my application with javascript (creating thumbnails) but I have no experiences with that (maybe canvas.toDataUrl could help). The last but not my favorite solution is to create a webworks extension to create thumbnails in AIR.

 

Has anyone found someting for that?

Regular Contributor
sandeshmsg
Posts: 64
Registered: ‎06-16-2011
My Device: bold 9000, playbook

Re: Image loading time .

I am also at the same situation. Loading the images captured by the camera is taking too long . Thanks a lot :smileyhappy:
Developer
Levion
Posts: 137
Registered: ‎12-22-2010
My Device: Curve 8520

Re: Image loading time .

Do you work on phone or tablet?

Regular Contributor
sandeshmsg
Posts: 64
Registered: ‎06-16-2011
My Device: bold 9000, playbook

Re: Image loading time .

Tablet sir .
Developer
Developer
LBP
Posts: 607
Registered: ‎04-29-2011
My Device: PlayBook 16GB, BB10 LE Z10 (red)
My Carrier: none

Re: Image loading time .

Bump..

 

Since I'm playing around with the BB10 Dev Alpha I needed an app to load and show the images taken by the camera app, since this is the only app on the device next to the browser app. So I tried to load them by using blackberry.io.dir.listFiles on the "camera" folder and it takes really a lot of time to bring them up using a bbUI.js "grid-layout". Somebody got a solution on this??

 

Regards.


"Like" if you liked the post.
"Accept as Solution" if the post solves your question.
Developer
WebCreep
Posts: 236
Registered: ‎07-27-2012
My Device: BlaclBerry PlayBook 16gb, BlackBerry dev alpha

Re: Image loading time .

@LBP download playbook os latest version and install all the bar files using bbh tool or ddpb installer. now you can feel lik you have a mini playbook. you can hear songs, watch videos and view images captured by camera :Rockon:

Developer
Developer
LBP
Posts: 607
Registered: ‎04-29-2011
My Device: PlayBook 16GB, BB10 LE Z10 (red)
My Carrier: none

Re: Image loading time .


WebCreep wrote:

@LBP download playbook os latest version and install all the bar files using bbh tool or ddpb installer. now you can feel lik you have a mini playbook. you can hear songs, watch videos and view images captured by camera :Rockon:


There is no download I think. You can whitelist your PlayBook and get a notification on the PlayBook to install it directly I read. But anyway this is out of topic here.


"Like" if you liked the post.
"Accept as Solution" if the post solves your question.
Trusted Contributor
NitishSubudhi
Posts: 166
Registered: ‎12-09-2011
My Device: 9550,9300,9800,9700,9900,9850,9860

Re: Image loading time .

I have also the same problem of loading images from SD Card.
It is taking around 4 Sec to load whole Images to the Image gallery.

So I Got One solution,
I used setTimeOut Method in java Script and give 5 Sec of Timing.
This is Working fine in my APS.

You also Try the same, May be this method works for You. 

Thanks & Regards,
Nitish Subudhi

Feel Free To Press The Like Button On The Right Side To Thank The User That Helped You.
Please Mark Posts As Solved If You Found a Solution.
Retired
astanley
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Image loading time .

This is a good request. I've started documenting the need for an API or extension to generate thumbnails for file system images here.

 

https://github.com/blackberry/WebWorks-Community-APIs/issues/93

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.