Skip Navigation LinksHome > Categories > Code from a Category

Creating thumbnails with PHP

User Name: serfcompany
Name: Serf
Contact Me:
Home Page:
php,mysql,javascript,html,css. Preferable working with Zend Framework. Good know javascript. I worked with various, javascript frameworks such as(jquery, YUI3, extjs, sencha touch). [More]
Viewed Times: 1391
Add Date: 02/12/2012
In this short article we consider the creation of proportion to the reduced thumbnail images or large images (thumbnail).

It is often necessary to create thumbnail images proportionally reduced or large images (thumbnail). This is mainly used for the galleries, but sometimes need to send someone a lot of pictures, and Internet channel not very wide.

That for these purposes and will fit my small script in PHP, which reduces the image from the specified folder, and save your image in a folder with the script (the way it is easy to configure.)

Until we are able to work only with jpg, this script will most likely start to create the gallery with jQuery and PHP, as a whole. Enough words, get down to business.

Create a script

Once we have found a bunch of photos of a large amount and store them in a folder imgs, files with the extension must be jpg.

Run the script and get a folder with the script miniature sizes which are easily set in the beginning of the script PHP.

Post a Comment

Name: (Optional)
Email: (Optional, you can get an email if somebody replys your comments)*
Email me if somebody respons my comment below:
Enter Text
as Below:
(case insensitive, if hard to read, click the "get a new one" button)
* Your email address will not be shared with any third parties for any reason.
** Maximum 1000 charactors.