adrianlee / super-simple-photo-gallery

A beautiful and easy-to-use image gallery for showcasing your images on a BlackBerry Playbook!
9 stars 2 forks source link

Retrieving Images #2

Open choiboi opened 12 years ago

choiboi commented 12 years ago

Our current plan is to traverse through every single directories in the device and display all the images in the device file system. This plan will display images stored and used by other application installed on the device.

I suggest that we should traverse into particular directories where it mostly contain images stored by the user or taken by the device camera.

adrianlee commented 12 years ago

How about a folder browser with check boxes to select which folders you want to search for images.

Kinda like a filter.

adrianlee commented 12 years ago

Doesn't have to be check boxes but you get the idea.

choiboi commented 12 years ago

So a list of folders and when you click on one of the listed folders it will display all the pictures in that selected folder?

adrianlee commented 12 years ago

Yeah that's pretty much what I was thinking. By default, photos and camera folders should be selected.

I guess we want this feature to be as simple as possible to understand and use.

choiboi commented 12 years ago

In our current setup we will be looking for folders with the name:

adrianlee commented 12 years ago

images need to be compressed and resized before loading it to our DOM. or else loading many images will take a long time, killing user experience.

adrianlee commented 12 years ago

not sure how to do client side browser/js image resizing. is there a tool for it?

choiboi commented 12 years ago

Won't spending time on resizing the images also take time?

choiboi commented 12 years ago

I just did some quick search on resizing images using javascript will any of these 2 links below help?

http://stackoverflow.com/questions/170624/javascript-image-resize http://www.ajaxblender.com/howto-resize-image-proportionally-using-javascript.html

adrianlee commented 12 years ago

These methods resize the original image. We need a way to get the thumbnail or cache a smaller version of the original. Thats the only logical method i can think of to reduce dom load times.

Probably do a resize and compress when we load an image for the first time.

Is there any function that allows us to load images quicker with the help of an Api?

----- Original Message ----- From: James Choi [mailto:reply@reply.github.com] Sent: Wednesday, February 22, 2012 10:48 AM To: Adrian Z Lee Subject: Re: [Super-Simple-Photo-Gallery] Retrieving Images (#2)

I just did some quick search on resizing images using javascript will any of these 2 links below help?

http://stackoverflow.com/questions/170624/javascript-image-resize http://www.ajaxblender.com/howto-resize-image-proportionally-using-javascript.html


Reply to this email directly or view it on GitHub: https://github.com/adrianlee/Super-Simple-Photo-Gallery/issues/2#issuecomment-4106593


This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

adrianlee commented 12 years ago

Need to figure logic for when an image doesn't exist after being imported into DB, it should not be shown. Right now, I believe it imports photos from a source to DB, then load images from DB to collection.