Hello,
I recently using the filemanager v1.7 and i cant crop images... Getting this error:
NotReadableException in AbstractDecoder.php line 335:
Image source not readable
in AbstractDecoder.php line 335
at AbstractDecoder->init('C:\\wamp64\\www\\base-laravel\\publichttp://localhost:8000/uploads/shares/batman.jpg') in AbstractDriver.php line 64
at AbstractDriver->init('C:\\wamp64\\www\\base-laravel\\publichttp://localhost:8000/uploads/shares/batman.jpg') in ImageManager.php line 50
at ImageManager->make('C:\\wamp64\\www\\base-laravel\\publichttp://localhost:8000/uploads/shares/batman.jpg') in Facade.php line 221
at Facade::__callStatic('make', array('C:\\wamp64\\www\\base-laravel\\publichttp://localhost:8000/uploads/shares/batman.jpg')) in CropController.php line 40
it will be really awesome if someone can give me a hand!
Thanks
I have exactly the same issue. I also tried running my app on Linux Ubuntu with homestead and there is the same error.
Any help is appreciated!
Thanks
same problem. I think I solved it by editing the \vendor\unisharp\laravel-filemanager\src\views\crop.blade.php
in function performCrop() {
line in data that says:
img: '{{ $img }}',
changed it to
img: '{{ parse_url($img, PHP_URL_PATH) }}',
now it works, but I don't know if this is safe. (will this get overwritten on the next composer update?)
ha! the same works for resize.blade.php
Copy files from \vendor\unisharp\laravel-filemanager\src\views\ to \resources\views\vendor\laravel-filemanager\ and edit \resources\views\vendor\laravel-filemanager\crop.blade.php
Works well.
Works good! Thanks
Got it. This bug also happens in macOS. Will fix this soon.
Thanks @fmarkos. The solution works well. The issue is there for resizing functionality as well.
For any body encountering this issue, please follow the upgrade document and upgrade to v1.7.1.
Most helpful comment
same problem. I think I solved it by editing the \vendor\unisharp\laravel-filemanager\src\views\crop.blade.php
in function performCrop() {
line in data that says:
img: '{{ $img }}',
changed it to
img: '{{ parse_url($img, PHP_URL_PATH) }}',
now it works, but I don't know if this is safe. (will this get overwritten on the next composer update?)
ha! the same works for resize.blade.php