How to resize an image (on the fly) and keep its aspect ratio using GD

Visit Publisher Site

This is a PHP Class useful if you need to resize images keeping their aspect ratio, using the GD Library. The new height is calculated proportionally to the new width’s size and reverse. For instance you have an image with the following dimensions: width – 1000, height – 800. Its thumbnail with a width of 250 will have the height of 200 (the ratio is kept).

Visit publisher site: How to resize an image (on the fly) and keep its aspect ratio using GD
  • Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose
    Be the first to rate this listing!
  • 1 Member Reviews
  • Views: 691
  • Price: Free

Listing Details

Filed in:
Scripts / PHP / Tutorials & Tips / Image Manipulation
Submitted on:
 
Last Updated:
May 16, 2015 
Publisher:
Other listings by this publisher

License & Pricing Information

LICENSE #1
License Type:
Freeware
Price:
$0.00 USD
Additional Info:

User Reviews 

Add/Edit Your Review

Displaying 1-1 out of 1 reviews

  • https://cecebola.wordpress.com/ very nice script

See all 1 reviews for How to resize an image (on the fly) and keep its aspect ratio using GD