Set textbox in given coordinates over image with autofit text for width and height of the textbox

54
May 19, 2022, at 02:00 AM

Set textbox in given coordinates over image with autofit text for width and height of the textbox, I tried the next code and it works fine but without autofit or to set static dimensions "width ,height" to the textbox

$image = Image::make(public_path('img/base-img.png'));
    $image->text($text, 670, 280, function ($font) {
        $font->file(public_path('fonts/BJadidBd.ttf'));
        $font->size(24);
        $font->color('#000000');
        $font->align('center');
        $font->valign('center');
        $font->angle(0);
    });
    $image->save(public_path('img/test.png'));
Rent Charter Buses Company
READ ALSO
Doctrine query (not QueryBuilder) with multiple andWhere and multiple OR

Doctrine query (not QueryBuilder) with multiple andWhere and multiple OR

I have the following code to select items with either of the group and many other parameters:

60
What will Xpath return in PHP for XML

What will Xpath return in PHP for XML

There is a code that is applied to XML

83
how to simplify if elseif statement to get particular search data from laravel MySQL database

how to simplify if elseif statement to get particular search data from laravel MySQL database

I am collecting all the data like id, name, date, empid from the controller in variable data

57