Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2007
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Photo Gallery - Aspect Ratio

    Hi Folk,

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

    Salchester.
    The Future Is Here - Are You Ready?

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,472
    Thanks
    8
    Thanked 1,085 Times in 1,076 Posts
    By using the GD library ...

    http://us2.php.net/manual/en/functio...yresampled.php

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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •