image
image copied to clipboard
Error: Unable to init from given url
I have the same problem that is mentioned in #283. See https://github.com/Intervention/image/issues/283#issuecomment-495814565.
Have you found a solution?
Asset helper returns a URL. You don't want a URL when working with files, you want a PATH that the filesystem can understand
try storage_path/public_path instead
$img = Image::make(storage_path('assets/images/sample.png'));
Adjust your path to suit, I doubt it is storage/app/public/profile/sample.php because that's a PHP file
Take a look at the answer here
The integration of the option to read data directly via URLs was a mistake. The task of this library is image manipulation. Reading data via HTTP should be done by a corresponding client. For this reason, Intervention Image Version 3 does not support reading URLs.