How to resize an image (on the fly) and keep its aspect ratio using GD
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 Listing - Inout Shopping Cart - Multi Vendor Edition Inout Shopping Cart - Multi Vendor Edition - Cover Image](https://listingimages.hotscriptscontents.com/cover-image/133936/medium_69a32a7b5fa390dec58e09b6f9bc0413.png)
![Visit Listing - Auction Theme: Start your own auction website today. (New 2022) - Download Now! Auction Theme: Start your own auction website today. (New 2022) - Download Now! - Cover Image](https://listingimages.hotscriptscontents.com/cover-image/167653/medium_aecf388f80b8fa1b1cd3d5c5cd864754.png)
![Visit Listing - Video Theme: Setup a website like YouTube today (New 2022) - Download Now! Video Theme: Setup a website like YouTube today (New 2022) - Download Now! - Cover Image](https://listingimages.hotscriptscontents.com/cover-image/167655/medium_c60dfc917d35fc05737c55332524bdd4.png)