Last post Dec 11, 2009 12:38 PM by Jos Branders
Dec 11, 2009 10:55 AM|lotusleaf|LINK
I have a datalist where I am loading pictures from database. I want all the photos to be same size (like a thumb nail). But when people upload photos, they put all kind of size photos. So how do I calculate the aspect ration of photos and my thumb nail
should become the size of 102 x 77 kind of size. I use C#.
Dec 11, 2009 12:33 PM|WillieMakit|LINK
I don't know if you are making the thumbnails by hand or programaticly, but the process is the same either way. You will need to extract the image size from the image properties. Then it is a simple matter of dividing the length by the height to get the
Dec 11, 2009 12:38 PM|Jos Branders|LINK