Download the PHP package sadovojav/yii2-image-cutter without Composer
On this page you can find all versions of the php package sadovojav/yii2-image-cutter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package yii2-image-cutter
Yii2 image cutter
This is a fork Patroklo/yii2-widget-upload-crop
Features:
- Upload image
- Crop image
- Use Imagine
- Cache sorting to subdirectories
Composer
The preferred way to install this extension is through Composer.
Either run
or add to the require section of your
Use
- Add to the model behavior
Parameters
- integer
attributes
required (string/array) - Image attributes - integer
baseDir
required - Base directory - integer
basePath
required - Base path -
integer
quality
=92
- Crop result quality - Use in view
Without client validation
or
With client validation
Widget method options
-
model (string) (obligatory)
Defines the model that will be used to make the form input field.
-
attribute (string) (obligatory)
Defines the model attribute that will be used to make de form input field.
-
useWindowHeight (bool) (optional)
Use the height of the current window for the form image cropping
-
imageOptions (array) (optional)
List with options that will be added to the image field that will be used to define the crop data in the modal. The format should be ['option' => 'value'].
- cropperOptions (array) (optional)
List with options that will be added in javaScript while creating the crop object. For more information about which options can be added you can read this web.