Laravel-filemanager: Crop function is not working (windows 10)

Created on 27 Feb 2017  路  7Comments  路  Source: UniSharp/laravel-filemanager

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

WIP bug

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

All 7 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lscavelli picture lscavelli  路  4Comments

intergalactisch picture intergalactisch  路  5Comments

asimshazad picture asimshazad  路  4Comments

rlrlaa123 picture rlrlaa123  路  3Comments

t67132 picture t67132  路  3Comments