Click here to Skip to main content
16,021,125 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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?
Posted
Updated 30-Jan-10 11:12am
v2

1 solution

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900