Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A lightweight wrapper of phpThumb for the Yii PHP framework
PHP Ruby Other
Branch: master

Merge pull request #1 from seregagl/watermark

Adds a watermark to the current image
latest commit 0a68cc8d29
@Haensel authored

README.md

INTRODUCTION

This Yii extension is a wrapper for phpThumb (http://phpthumb.gxdlabs.com/). It doesn't do anything fancy, just the things phpThumb does but in a way that is familiar for Yii users

USAGE

Config in main.php

'phpThumb'=>array(
    'class'=>'ext.EPhpThumb.EPhpThumb',
    'options'=>array(optional phpThumb specific options are added here)
),

Creating thumbnails

$thumb=Yii::app()->phpThumb->create('../images/myImage.jpg');
$thumb->resize(100,100);
$thumb->save('../images/thumb.jpg');

LICENSE

phpThumb is released under the MIT license, so is this extension

Something went wrong with that request. Please try again.