简体   繁体   English

在laravel中上传之前的图片裁剪器

[英]Image cropper before uploading in laravel

I am looking for any library in jQuery for image crop before upload. 我在上载之前正在寻找jQuery中用于图像裁剪的任何库。 like: http://foliotek.github.io/Croppie/ but it makes images size 6 to 7 times bigger. 像: http//foliotek.github.io/Croppie/,但它会使图像尺寸大6至7倍。 ie image of 800kb would be upload of 7mb or 8mb. 即800kb的图片将上传7mb或8mb。

There are a lot of libs to do that. 有很多库可以做到这一点。 Just need to google a little bit. 只需要一点点谷歌。

Some are: 一些是:

https://github.com/supnate/icropper https://github.com/supnate/icropper

https://github.com/fengyuanchen/cropperjs https://github.com/fengyuanchen/cropperjs

您应该使用画布图像裁剪器。

Croppie 克罗比

   $uploadCrop.croppie('result', 
    {   
        type: 'canvas',
        size: 'original',
        quality:  0.7,
        format: 'jpeg',
    }
With document **Image Cropper**

您可以使用它与laravel 5.6一起使用http://odyniec.net/projects/imgareaselect/usage.html#styling-options

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM