Package Data | |
---|---|
Maintainer Username: | Joanvt |
Maintainer Contact: | info@kevento.es (Joan) |
Package Create Date: | 2017-08-09 |
Package Last Update: | 2017-09-26 |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2024-11-23 03:04:08 |
Package Statistics | |
---|---|
Total Downloads: | 89 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 4 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 2 |
Image cropper for Laravel 5.4 You must get ImagePicker from Envato - ImagePicker
Just 14$ and you will get a nice jQuery plugin for uploading and cropping images.
composer require joanvt/imagepicker
This package has a few improvements respect to the server files provided by ImagePicker. So it means you have to change a few things. I can't upload the jquery files because it belongs to ImagePicker (get it bro) and I am here to help to integrate this to Laravel and not to steal!
jquery.imagepicker.js
Line ~411: imagePreview = this.options.url + '?action=preview&file=' + image.name + '&width=800'
into this: (just add &path?'+image.path)
imagePreview = this.options.url + '?action=preview&file=' + image.name + '&width=800&path='+image.path;
You can try to follow the original documentation from Hazzardweb But I am introducing new features for a improved architecture for storing images with Laravel Flysystem.
i.e:
upload_dir now
refers to Storage Disk Laravel Filesystem