Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Optimize display of a large number of images (1000+) for performance and ease of use in a web application

In our web application, the users need to review a large number of images. This is my current layout. 20 images will be displayed at a time, with a pagination bar above the thumbnails. Clicking a thumbnail will show the enlarged image to the left. The enlarged image will follow the scrollbar so it's always visible. Quite simple actually.

enter image description here

I was wondering what the best interface would be in this scenario:

One option is to implement an infinite scroll script which will lazy load thumbnails as the user scrolls. The thumbnails not visible will be removed from the DOM. But my concern with this approach is the number of changes in the DOM slowing down the page.

Another option could be something like Google's Fastflip.

What do you think is the best approach for this application? Radical ideas welcomed.

like image 647
HyderA Avatar asked Aug 09 '11 15:08

HyderA


People also ask

How do I optimize large images for web?

Use progressive JPEGs and next gen file formats to ensure images load faster. Utilize caching both on the client and server side to eliminate wasteful image re-loading. Use compression to reduce file size without noticeably affecting quality. Resize images to the appropriate size before displaying them to users.


1 Answers

I think the question you have to ask is: what action is user supposed to do? What's the purpose of the site?

If "review images" entails rating every image, I'd rather go with a Fastflip approach where the focus is on the single image. A thumbnail gallery will distract from the desired action and might result in a smaller amount of pics rated/reviewed.

If the focus should rather be on the comparison of a given image against others, I'd say try the gallery approach, although I wouldn't impement an infinite scroll with thumbnails because user can quickly get lost in the abundance of choices. I think a standard pagination (whether static or ajaxified) would be better if you choose to go this route.

Just my 2c.

like image 93
bobsoap Avatar answered Nov 15 '22 07:11

bobsoap