I am trying to upload images through Laravelbackpack. Everything work properly in localhost, but when I deploy it on Heroku it fails.
The line that is causing the server error is: $image =\Image::make($value)->encode('jpg', 90);
I am trying to upload images through Laravelbackpack. Everything work properly in localhost, but when I deploy it on Heroku it fails.
The line that is causing the server error is: $image =\Image::make($value)->encode('jpg', 90);
From my understanding, you're using Intervention image library. It requires PHP-GD or Imagick PHP extension. You can use GD for example. Heroku doesn't install it as default, but you can easily do it by requiring it in your composer.json
file:
{
...
"require": {
...
"ext-gd": "*",
...
}
...
}