Closed philmarc closed 8 years ago
Could try using the absolute path to your watermark file?
Hi, I tried absolute path
GlideImage::create(public_path().'/uploads/posts/cropped-1555.jpg') ->modify(['mark' => '/home/vagrant/Code/mysite/public/uploads/posts/mark-100h.png']) ->save(public_path(). '/output.jpg');
with no luck.
This has been fixed in v.3.0.1. You can now use the absolute path in the mark
parameter.
Tested it on local and production, works like a charm using public_path()
Thanks for the fix!
I am trying to add a watermark to my image:
Following the Glide doc (http://glide.thephpleague.com/1.0/api/watermarks/) I added a new filesystem for watermarks, in the laravel's
config/filesystems.php
file.However, my generated thumb doesnt have any watermark on it. And there is no log error report.
Where should I place my
watermark.png
file ? I tried instorage/images
andstorage/watermarks
and even modifying'mark' => storage_path('images/watermark.png')
but I can't get it working.