menu

Questions & Answers

Fonts size issue in adding watermark on image laravel

I'm using intervention Image in laravel for writing text over image. every things worked well except the fonts size. how can I make it bigger?? thanks for any help!

Image::make($avatar)
                ->text($store['watermark_text'], 120, 100, function($font) {
                    $font->size(75);
                    $font->color($_POST['colorr']);
                    $font->align('left');
                    $font->valign('bottom');
                    $font->angle(90);
                })->save(public_path('/store/products/'.$filename));
 
Comments:
2023-01-24 23:30:05
Seems like you need to define a font file to be able to change the size. From the manual about size(): "Font sizing is only available if a font file is set and will be ignored otherwise. Default: 12"
2023-01-24 23:30:05
like this: $font->family(myFont); ???
Answers(0) :