Resizing image without changing Aspect Ratio

I have written a piece of code post it here, use the code for your project..& give your suggestion. This code resizes the image (which is called from Database) without affecting the aspect ratio.

1) HTML => Code for file upload:


2) Use below code to get a image file from Database and Resize


3) PHP => Code to get and resize image:

Filename : upload.php


Leave a Reply

%d bloggers like this: