On Mon, June 4, 2007 1:44 am, Humani Power wrote: > Hey hi!!. > //get dimensions of the thumbnail > > $thumb_width=$width*0.10; > $thumb_height=$height*.10; It's really up to YOU to choose the thumbnail constant size and to decide what to do about the aspect ratio You could crop or fill with black, or transparent or... But making the thumbnail be 1/10th the original is your problem. Here is one possibility: $thumb_width = 50; $thumb_height = ($height/$width) * 50; You now have an image 50 wide and proportional height to the original. Here is another: $thumb_height = 50; $thumb_width = ($width/$height) * 50; That one is 50 tall and proptional width to original. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php