raoul2000/yii2-jcrop-widget 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

raoul2000/yii2-jcrop-widget

最新稳定版本:1.0.0

Composer 安装命令:

composer require raoul2000/yii2-jcrop-widget

包简介

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

README 文档

README

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

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

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

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

	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

License

yii2-jcrop-widget is released under the BSD 3-Clause License. See the bundled LICENSE.md for details.

统计信息

  • 总下载量: 232.09k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 2
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 2
  • Forks: 2
  • 开发语言: JavaScript

其他信息

  • 授权协议: BSD
  • 更新时间: 2026-01-04