You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I was trying to apply a different watermark path depending of the user who uploaded a photo, i tried with a runtimeConfig but i don't know how to do correctly.
Signed url does not pass the sign check for path "PHOTO-ROUTE" and filter "grid_thumb" and runtime config {"watermark":{"size":"0.5","image":"WATERMARK-ROUTE","position":"bottomright"}}
The text was updated successfully, but these errors were encountered:
SoulviES
changed the title
Watermark filter dinamic path
Watermark filter dynamic path
Dec 11, 2014
@Ipshal, I believe you will need a base configuration for watermark in your config to do this.
e.g you need:
grid_thumb:
quality: 50filters:
thumbnail: { size: [244, 244], mode: outbound }watermark:
# Relative path to the watermark file (prepended with "%kernel.root_dir%/")image: Resources/data/watermark.pngsize: 0.5position: center
Once you have the base configuration, you can then override the options. Also, where you position the filter will determine when it will be applied (e.g, if you want the watermark applied to the image before the thumbnail filter is run, you need to move it above the thumbnail filter).
Hello, were you able to make this work? I'm searching for a way to display dynamic watermarks on twig and I just tried your solution but it doesn't work. My image for the watermark comes from S3. So for the image variable I inform the complete url of the bucket where we can download the photo.
There seems to possible be/have been issues with watermarks? Let's clarify and potentially improve the docs and/or create a new issue for a new feature request.
Hi, I was trying to apply a different watermark path depending of the user who uploaded a photo, i tried with a runtimeConfig but i don't know how to do correctly.
I do this:
In the config.yml i have this:
This is the error in the profiler:
Signed url does not pass the sign check for path "PHOTO-ROUTE" and filter "grid_thumb" and runtime config {"watermark":{"size":"0.5","image":"WATERMARK-ROUTE","position":"bottomright"}}
The text was updated successfully, but these errors were encountered: