towhid's avatar

What is the difference between an image and a watermark image in laravel ?? how to use in project ? whats the output ?

i know how to image upload , but some one ask me do i know how to add water mark image in laravel ?

please answer me with practical code - thank you

0 likes
3 replies
Ishatanjeeb's avatar

I think this link should help you-

http://php.net/manual/en/image.examples.merged-watermark.php
towhid's avatar

yes i checked but do you have any laravel process source dynamically ?

?

Sergiu17's avatar

@towhid just use Image Intervention - http://image.intervention.io/api/insert

// create new Intervention Image
$img = Image::make('public/foo.jpg');

// paste another image
$img->insert('public/bar.png');

// create a new Image instance for inserting
$watermark = Image::make('public/watermark.png');
$img->insert($watermark, 'center');

// insert watermark at bottom-right corner with 10px offset
$img->insert('public/watermark.png', 'bottom-right', 10, 10);

Please or to participate in this conversation.