simpleimage Simple extension to resize image

  1. Requirements
  2. Usage
  3. Resources

Most of time we just need resize function in a image library. This extension uses simple_image to resize image.

Requirements

Yii 1.1 or above

Usage

extract download file to protected/extensions

Edit main.php

'components'=>array(
                'simpleImage'=>array(
                        'class' => 'application.extensions.CSimpleImage',
                ),

Usage

$file="images/logo.jpg";
$img = Yii::app()->simpleImage->load($file);
$img->resizeToWidth(128);
$img->save("newLogo.jpg");

Resources

For more information: http://www.white-hat-web-design.co.uk/blog/resizing-images-with-php/

13 0
15 followers
2 953 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Others
Tags: image
Developed by: David T
Created on: Sep 16, 2011
Last updated: 6 years ago

Downloads

show all

Related Extensions