...

View Full Version : Photo Gallery - Aspect Ratio



Salchester
07-21-2007, 03:11 AM
Hi Folk,

Using PHP, how do I create a Photo Gallery displays the images on the page whilst keeping the aspect ratio in tact?

mlseim
07-21-2007, 04:01 AM
By using the GD library ...

http://us2.php.net/manual/en/function.imagecopyresampled.php

Specifically that page, because there are examples of creating
thumbnails (or any resize) with proportional resizing mathematics.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum