Image Upload and Resize with PHP


Image uploading is the need of websites which handling form processing or user login. Most of the realtime web application needs this feature. But the main problem is the image size and resolution while uploading the photo. In this post, I am going to write about image upload and resize with PHP. You can use this code and check if it works for you. By resizing the image, you can save space on your hosting and small images also takes less time in loading in browser.

This script resize an Image into two 60px and 25px. see the variables $newwidth and $newwidth1 in the code. Change the values according to your need to convert image size according to your need.

PHP Code




Written by Deepanker

Deepanker Verma is the founder of Techlomedia. He is a tech blogger, developer and gadget freak.

One Comment

Leave a Reply
  1. It’s really a nice and useful piece of info. I am glad that you shared this useful info with us. Please stay us up to date like this. Thanks for sharing.

Leave a Reply

Your email address will not be published. Required fields are marked *


Gmail Like Chat With jQuery

10 WordPress Themes For Photo Gallery and Portfolio Website