Download the PHP package emnabs/yii2-jcrop without Composer
On this page you can find all versions of the php package emnabs/yii2-jcrop. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download emnabs/yii2-jcrop
More information about emnabs/yii2-jcrop
Files in emnabs/yii2-jcrop
Download emnabs/yii2-jcrop
More information about emnabs/yii2-jcrop
Files in emnabs/yii2-jcrop
Please rate this library. Is it a good library?
Informations about the package yii2-jcrop
Image Cropping
Yii2 image cropping extension
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
Widget has following properties:
Name | Description | Default | Required |
---|---|---|---|
uploadParameter | Upload parameter name | file | No |
width | The final width of the image after cropping | 200 | No |
height | The final height of the image after cropping | 200 | No |
uploadUrl | URL for uploading and cropping image | Yes | |
maxSize | The maximum file size (b). | 2097152 | No |
cropAreaWidth | Width box for preview | 300 | No |
cropAreaHeight | Height box for preview | 300 | No |
extensions | Allowed file extensions (string). | jpeg, jpg, png, gif | No |
In UserController:
Action has following parameters:
Name | Description | Default | Required |
---|---|---|---|
path | Path for saving image after cripping | Yes | |
url | URL to which the downloaded images will be available. | Yes | |
name | uploded file name. | No | |
uploadParameter | Upload parameter name. It must match the value of a similar parameter of the widget. | file | No |
maxSize | The maximum file size (b). It must match the value of a similar parameter of the widget. | 2097152 | No |
extensions | Allowed file extensions (string). It must match the value of a similar parameter of the widget. | jpeg, jpg, png, gif | No |
width | The final width of the image after cropping. It must match the value of a similar parameter of the widget. | 200 | No |
height | The final height of the image after cropping. It must match the value of a similar parameter of the widget. | 200 | No |
Operates as follows:
License
yii2-jcrop is an open source project modified by Ehsan Rezaei(http://www.developit.ir) that is licensed under GPL-3.0. used and modified from https://github.com/rezaei121/yii2-jcrop
All versions of yii2-jcrop with dependencies
PHP Build Version
Package Version
Requires
yiisoft/yii2 Version
*
yiisoft/yii2-imagine Version *
bower-asset/jcrop Version =0.9.12
bower-asset/simple-ajax-uploader Version @dev
yiisoft/yii2-imagine Version *
bower-asset/jcrop Version =0.9.12
bower-asset/simple-ajax-uploader Version @dev
The package emnabs/yii2-jcrop contains the following files
Loading the files please wait ....