cloudinary-laravel
cloudinary-laravel copied to clipboard
Add overlay image
Hi,
Is it possible to add a watermark/overaly image to another image or video using this package?
Try this:
$imageUrl = cloudinary()->upload($file->getRealPath(), [
'folder' => 'images',
'transformation' =>[
["width" => 1000, "height" => 1000, "crop" => "limit"],
["overlay" => "public-id", "flags" => "relative", "width" => 0.5]
] ,
])->getSecurePath();
Replace public-id with the actual public id of the watermark image
Thanks, is it possible to use a url for the watemark image?
I don't know if it's possible. I have tried using it and it didn't work.
@chriship do you mean a URL that's not on Cloudinary?
@chriship this should help/work https://cloudinary.com/documentation/layers#remote_image_overlays