I'm trying to use image intervention in my Jobs Controller. First, "image source not readable error" came out. But then I fixed by adding storage_path. Now it's showing this error:
Call to undefined function Intervention\Image\Gd\imagettfbbox()
This happen when I want to write font on an image. These are my codes:
$img->text($line, $x_subject, $y, function($font) use ($font_size_subject, $font_path){
$font->file(storage_path($font_path));
$font->size($font_size_subject);
$font->color('#000000');
$font->align('center');
$font->valign('middle');
});
There is no error when I try to use it in a normal controller. This error just shows up when I'm using image intervention in Jobs controller.
Is there any way I can solve this? Thank you