Good day. Please tell me about this moment. I get a string from the database, and I need to put it on top of the finished image. I plan to overlay one image on top of another with the help of this library . But how to translate the string that came from the database into a picture?

    1 answer 1

    As usual, the day was tormented, wrote a question, after 20 minutes decided. through the same library:

    $img->text($coupone, 315, 745, function($font) { $font->file(public_path('/arial.ttf')); $font->size(28); $font->color('#000'); $font->align('center'); $font->valign('bottom'); });