Click here to Skip to main content
14,599,188 members
Rate this:
Please Sign up or sign in to vote.
See more:
How can I thumbnail my pictures or video clips in details view? In fact I have some clips and pictures in my DB and I want to see thumbnail of them on my page before click on it for show large size.

Also how can I make the page show pictures with the same size?
Updated 30-Jan-10 11:12am

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

The answer to both questions is, store thumbnails in your DB. Creating thumbnails of video clips in particular, takes too long to do it on the fly, but even images, to create a thumbnail, you need to load the full image into memory. So, you create the thumbnails first. You create them all the same size, then they will show the same size. You can create different sizes and size them with CSS, but again, that means you're loading bigger images than you need to.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100