PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Hemant Kumar Tiwary   PHP Resize Image on the fly   README.md   Download  
File: README.md
Role: Documentation
Content type: text/plain
Description: Documentation
Class: PHP Resize Image on the fly
Serve resize image from given URL on the fly
Author: By
Last change: Update of README.md
Date: 7 months ago
Size: 949 bytes
 

Contents

Class file image Download
Licence : GNU General Public License This Class is used to resize the image on fly. it doesn't store the resize image Requirement: 1. ImageMagick Version: ImageMagick 6.6.9-7 2. PHP CURL enable Replace in resizer.php class 1. "NO_THUMB_IMAGE_URL" to "Your server no thumb URL" define('NO_THUMB_IMAGE_URL', 'http://www.cricketworldcupt20.com/wp-content/themes/sw_go/assets/img/no-thumbnail.png'); How to use <img src='http://localhost/resizer.php?url=http://texipaleo.files.wordpress.com/2014/01/cropped-cropped-cropped-cropped-blogheader4.jpg&size=200x200-S /> Where http://localhost/resizer.php : it is the server url url & size are the parameter. url : The image path which get resize. size : size in width and height of resize image. example : size = 200x200-S : it will resize the image without keeping aspect ratio. size = 200x200-PC : It will resize image and then crop it.