2017 © Pedro Peláez
 

library yii2-kohanaimage

yii2-kohanaimage

image

xj/yii2-kohanaimage

yii2-kohanaimage

  • Wednesday, March 18, 2015
  • by xjflyttp
  • Repository
  • 2 Watchers
  • 0 Stars
  • 47 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

yii2-kohanaimage

composer.json

"require": {
    "yii2-kohanaimage": "*"
},

Example

header("Content-Type: image/jpg");
$pathToFile = 'f:/1.jpg';
$pathToFile2 = 'f:/2.jpg';
echo Image::load($pathToFile)->render('png');
echo Image::load($pathToFile)->crop(100, 100)->render();
echo Image::load($pathToFile)->resize(100, 100, Image::INVERSE)->render();
echo Image::load($pathToFile)->resize(100, null)->render();
echo Image::load($pathToFile)->resize(null, 100)->render();
echo Image::load($pathToFile)->rotate(45)->render();
echo Image::load($pathToFile)->resize(400, null)->sharpen(20)->render();
echo Image::load($pathToFile)->rotate(45)->watermark(Image::load($pathToFile2))->render();

Properties

Image::load($pathToFile)->width;
Image::load($pathToFile)->height;
Image::load($pathToFile)->type;
Image::load($pathToFile)->mime;

Methods

```````````````````` background() crop() factory() flip() reflection() render() resize() rotate() save() sharpen() watermark() `````````````````````, (*1)

Ref

``````````` http://kohanaframework.org/3.2/guide/api/Image ````````````, (*2)

The Versions

18/03 2015

dev-master

9999999-dev

yii2-kohanaimage

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar xjflyttp

18/03 2015

4.0.3

4.0.3.0

yii2-kohanaimage

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar xjflyttp

18/03 2015

4.0.2

4.0.2.0

yii2-kohanaimage

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar xjflyttp

18/03 2015

4.0.1

4.0.1.0

yii2-kohanaimage

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar xjflyttp

03/03 2015

4.0.0

4.0.0.0

yii2-kohanaimage

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar xjflyttp