2017 © Pedro Peláez
 

yii2-extension yii2-jcrop-widget

This extension is a wrapper for the jQuery Image Cropping Plugin (jcrop)

image

raoul2000/yii2-jcrop-widget

This extension is a wrapper for the jQuery Image Cropping Plugin (jcrop)

  • Sunday, January 28, 2018
  • by raoul2000
  • Repository
  • 3 Watchers
  • 7 Stars
  • 20,760 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 2 Open issues
  • 2 Versions
  • 15 % Grown

The README.md

JCrop Yii2 Extension

This yii2 extension is a wrapper for the jQuery Image Cropping Plugin (jcrop), (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist raoul2000/yii2-jcrop-widget "*"

or add, (*4)

"raoul2000/yii2-jcrop-widget": "*"

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

Usage

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

    raoul2000\jcrop\JCropWidget::widget([
        'selector' => '#image_id',
        'pluginOptions' => [
            'aspectRatio' => 1,
            'minSize' => [50,50],
            'maxSize' => [200,200],
            'setSelect' => [10,10,40,40],
            'bgColor' => 'black',
            'bgOpacity' => '0.5',
            'onChange' => new yii\web\JsExpression('function(c){console.log(c.x);}')
        ]
    ]);

For complete documentation please refer to the official JCrop page, (*7)

License

yii2-jcrop-widget is released under the BSD 3-Clause License. See the bundled LICENSE.md for details., (*8)

The Versions

28/01 2018

dev-master

9999999-dev https://github.com/raoul2000/yii2-jcrop-widget

This extension is a wrapper for the jQuery Image Cropping Plugin (jcrop)

  Sources   Download

BSD-3-Clause BSD 3-Clause

The Requires

 

extension yii2 jquery yii image crop

30/07 2014

1.0.0

1.0.0.0 https://github.com/raoul2000/yii2-jcrop-widget

This extension is a wrapper for the jQuery Image Cropping Plugin (jcrop)

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 jquery yii image crop