cropper icon indicating copy to clipboard operation
cropper copied to clipboard

Results 13 cropper issues
Sort by recently updated
recently updated
newest added

遇到的问题:指定宽高为200x200,我上传的图片是200x200,裁剪时,图片被放大了20%左右。导致每次都需要手动调整最大的尺寸,希望能够增加一个方法来指定底图图片不缩放、或能裁剪的最大尺寸 ![image](https://user-images.githubusercontent.com/10071535/180902646-2f742c87-2f9e-4acc-a084-03f8d3adee11.png) ![image](https://user-images.githubusercontent.com/10071535/180902664-dba4ac41-719d-49a9-8601-adcd7131b8c9.png) 裁剪手动调整大小,裁剪后也是我指定的尺寸,所以我裁剪调整大小尺寸到最大也是可以的 ![image](https://user-images.githubusercontent.com/10071535/180902683-003f3ba8-e05d-4e80-9338-e8f5216d1161.png)

` @include('admin::form.error') {{ trans('admin_cropper.choose') }} @include('admin::form.help-block') ` `$form->cropper('image',__('Image'))->rules( ($config['required'] == 1 ? 'required|' : '') )->move('/products')->help("Image dimension must be ".$width."x".$height . '. ' . $require_text)->cRatio($width,$height)` ![Screenshot (275)](https://user-images.githubusercontent.com/22468507/93848280-b56bce00-fcdb-11ea-9d42-9fad49388f18.png) 我想要 那 Help...

在safari下裁剪图片只显示一半BUG, 不是必现, 貌似只有在图片大一点的情况下比如 5M左右, 裁剪才会出现, 目前排查的情况应该是 sarari在提交base64编码的时候时进行了特殊符号的转义, 比如 + , =, 等字符, 也有可能不同的浏览器对 + 号的处理不一致导致, 所以希望能修复, 我的办法是 把 +,= 用其他字符代码, 然后服务器再返替换. 问题是到裁剪的原始图片达到10M以后, JS替换就会很慢, 很卡.

添加了required() $form->cropper('image', __('图片'))->cRatio(350,350)->required();

感谢作者的付出,组件好用。 5.8版本复制作者的命令行发布失败了,用下面的成功,特此记录一下。 php artisan vendor:publish --provider=Encore\Cropper\CropperServiceProvider

![image](https://user-images.githubusercontent.com/26992453/80559323-bdb32c00-8a0f-11ea-9b37-d8b70fa37c4d.png) 这个不是很合理吧 `$image = $this->base64_image_content($base64,public_path('uploads/base64img_cache'));`

图片裁剪像素丢失问题

大胸弟,期待完美的界面啊