PHP Codes: Resizing Image Class

by freelynx

When I was updating one of my client website, I was facing a problem with image resizing. My client is a photographer but he doesn’t know anything about web technologies, so I have to make the website is user friendly for him to use, especially when he is about to upload his photos to the site.

Now, the challenge is how to make him uploading just the photos themselves through ftp without have to worry about resizing those photos for the thumbnails to be appeared on the website. In that case, I have to create an algorithm to resizing the photo automatically every time the page is loading on that particular page. So that the page will only display the thumbnail, not the real high resolution photos of him.

After struggling with the idea, I did a quick search via Google, then luckily found a PHP class written by Simon Jarvis that fitted my need perfectly. It’s really simple and easy to use. The class called SimpleImage and it has the functionality to resize image and save it to anywhere we want.

The SimpleImage Class is available at White Hat Web Design website and written under GNU General Public Licence.

Advertisement