2017 © Pedro Peláez
 

yii2-extension yii2-imagethum

Yii2 imagethum

image

udamuri/yii2-imagethum

Yii2 imagethum

  • Monday, September 4, 2017
  • by udamuri
  • Repository
  • 1 Watchers
  • 0 Stars
  • 18 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 6 % Grown

The README.md

README

Yii2 imagethum, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist udamuri/yii2-imagethum "*"

or add, (*4)

"udamuri/yii2-imagethum": "*"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by :, (*6)

 use udamuri\imagethum\ImageThum; //ImageThum is name of the class we made above

 $target_file = "uploads/$fileName";
 $resized_file = "uploads/resized_$fileName";
 $wmax = 300;
 $hmax = 300;
 $fileExt = '';
 ImageThum::resize($target_file, $resized_file, $wmax, $hmax, $fileExt);

 $target_file = "uploads/resized_$fileName";
 $thumbnail = "uploads/thumb_$fileName";
 $wthumb = 150;
 $hthumb = 150;
 ImageThum::thumb($target_file, $thumbnail, $wthumb, $hthumb, $fileExt);

The Versions

04/09 2017

v1.0

1.0.0.0 https://github.com/udamuri/yii2-imagethum.git

Yii2 imagethum

  Sources   Download

MIT

The Requires

 

extension yii2 image udamuri thumnail

04/09 2017

v1.x-dev

1.9999999.9999999.9999999-dev https://github.com/udamuri/yii2-imagethum.git

Yii2 imagethum

  Sources   Download

MIT

The Requires

 

extension yii2 image udamuri thumnail

04/09 2017

dev-master

9999999-dev https://github.com/udamuri/yii2-imagethum.git

Yii2 imagethum

  Sources   Download

MIT

The Requires

 

extension yii2 image udamuri thumnail

04/09 2017

v1.1

1.1.0.0 https://github.com/udamuri/yii2-imagethum.git

Yii2 imagethum

  Sources   Download

MIT

The Requires

 

extension yii2 image udamuri thumnail

14/06 2017

dev-v_1_0

dev-v_1_0 https://github.com/udamuri/yii2-imagethum.git

Yii2 imagethum

  Sources   Download

MIT

The Requires

 

extension yii2 image udamuri thumnail

01/11 2016

1.0

1.0.0.0 https://github.com/udamuri/yii2-imagethum.git

Yii2 imagethum

  Sources   Download

MIT

The Requires

 

extension yii2 image udamuri thumnail