Page 1 of 1

Displaying thumbnails

Posted: Sat May 30, 2015 2:36 pm
by M&M

hi,

I have a requirement to display images that are stored on a server in a list menu like the one below.

Image

So what would be the best place to store the images so that it will display faster on the mobile device? Do I use SIRV server or should I use appery database to store the images? When I used SIRV server and did a simple test it takes a few seconds to display just three images. Or should I need to keep 2 sets of images - 1. thumbnails and 2. Full size images? But that later will be troublesome. Please suggest

Thanks,
M&M


Displaying thumbnails

Posted: Sun May 31, 2015 2:14 am
by M&M

I figured it out. Consider closed. Thanks


Displaying thumbnails

Posted: Sun May 31, 2015 5:36 am
by Alena Prykhodko

Great! Could you please share solution?


Displaying thumbnails

Posted: Sun May 31, 2015 1:31 pm
by M&M

There are couple of ways

1) Pass parameters to SIRV so that it can reduce the image size on the fly. You can pass width, height, frame, border, rim etc as parameters and it will be done dynamically by SIRV server.

2) You can create profiles on SIRV server and call them easily with a simple URL like this: xxxxx.sirv.com/myimage.jpg?profile=myThumbnailProfileName (the xxxx depends on your SIRV server). The profile can contain all your pre-defined settings for thumbnails.

I am also thinking of locally doing some kind of caching. But I am only thinking of implementing this at a later stage.

Cheers,
M&M