iwi Web image crop and resize module. You use original image, set size and resize/crop type and there you go.

  1. iWi
  2. Installation
  3. Usage
  4. Deprecated
  5. Changelog
  6. Find us

iWi

Idol Web Image module for adaptive image resizing and caching in database, based on Kohana Image module.

Next methods are available:

  • crop()
  • rotate()
  • flip()
  • sharpen()
  • quality()
  • render()
  • save()

Detailed documentation

  • cache()
  • adaptive()

Additional tags

Installation

1.Place 'iwi' folder into 'protected/extensions/'

2.Configuration (protected/config/main.php):

'iwi' => array(
    'class' => 'application.extensions.iwi.IwiComponent',
    // GD or ImageMagick
    'driver' => 'GD',
    // ImageMagick setup path
    //'params'=>array('directory'=>'C:/ImageMagick'),
),

Usage

// loading
Yii::import('ext.iwi.Iwi');
$picture = new Iwi('images/sample.jpg');
$picture->resize(100,100, Iwi::NONE);
echo $picture->cache();

// chainable usage in template
echo Yii::app()->iwi->load("images/totem.png")->adaptive(250,120)->cache();

Deprecated

$this->widget("ext.iwi.Resize");

Widget Resize is now derpecated. Use adaptive() method now.

Changelog

November 03, 2012
  • Added support of tablePrefix. Requested by the user: kernel32ddl
  • Fix error if image doesn't exist
May 17, 2012
  • adaptive() combination of resize & crop, helps to making thumbnail.
May 15, 2012

Version 1.1 release
New api
ImageMagick support
There is no need to perform a dump, it is performed automatically

May 10, 2012

SQLite database support

May 4, 2012

Release of 1.0 version

Find us

Find us on GitHub : https://github.com/Idol-IT/iwi

For more info or advanced functions contact us : http://idol-it.com/

9 0
15 followers
1 807 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Caching
Developed by: monkeymafia
Created on: May 8, 2012
Last updated: 11 years ago

Downloads

show all

Related Extensions