How to add watermark on an image in Laravel 5.8 Step by Step

Anil Loutombam
Aug 9 · 2 min read

Step:1 Install intervention/image Package

composer require intervention/image
‘providers’ => [
‘aliases’ => [
‘Image’ => Intervention\Image\Facades\Image::class

Step:2 Add Watermark to image

public function addWatermark(){
$img = Image::make(public_path('images/main.png'));
$img->insert(public_path('watermark.png'),'bottom-right',10, 10);

Anil Loutombam

Written by

Software Engineer | Foodie

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade