Resizing images in PHP is easier with Image-Resize class. You can use it to create thumbnail images or resizing big images to desired size.
To use, just include image.class.php to your PHP file or where you are using resizing function. Then create new variable with an iresize() class object then use functions which comes with Image-resize class.
Example usage;<?php
require "image.class.php";
$resize = new iresize();
$resize->img("test.jpg")->size("500x500")->render("test-resized.jpg");
?>
Explaination;
iresize->img($source_filename) is where we are loading image to resize
->size("500x500") is for entering desired image size
->render("test-resized.jpg") is for final result. emptry/filename with extension
Download / Source
Blogger templates
Blogger news
Blogroll
Archives
-
▼
2012
(231)
-
▼
August
(17)
- Javascript Image Validation
- Dummy Data Generator tool
- for each statements with arrays in php
- Image-Resize class for PHP
- PHP comments
- Propel NestedSet inheritance problem
- crack facebook password facebook
- Contact Us
- Removing Cache from the page
- Java Script Page Loading....
- set Cookies in php
- associative arrays in php
- PHP increment and decrement operators
- FindProxyForURL - Parse a PAC (proxy auto config) ...
- No title
- A Brief History of Java and JDBC
- ADODB with PHP and oracle
-
▼
August
(17)