Duong Nguyen
Duong Nguyen

Reputation: 159

Image source not readable, Laravel intervention Image

I'm having trouble uploading image and saving path to the databse.
Here is my form: enter image description here

And my ProductsController: enter image description here

Error: enter image description here

I've tried to fixed this for hour but no result. Any help appreciated. Thanks!

Upvotes: 1

Views: 810

Answers (2)

Kamaro
Kamaro

Reputation: 1015

To enable exif-support configure PHP with --enable-exif

Windows users must enable both the php_mbstring.dlland php_exif.dll DLL's in php.ini. The php_mbstring.dll DLL must be loaded before the php_exif.dll DLL so adjust your php.ini accordingly.

Source php documentation : http://php.net/manual/en/exif.installation.php

Upvotes: 0

scottevans93
scottevans93

Reputation: 1079

Try changing Image::make($image) to Image::make($image->getRealPath());

Upvotes: 0

Related Questions