thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.78k stars 2.67k forks source link

Watermarks #1307

Closed ghost closed 7 years ago

ghost commented 7 years ago

Description:

Hi! Is there any fynctionality to set watermarks on image?

nunomsh commented 7 years ago

As far as I know none.. You can create some script that will generate the images+watermark, or you can do it with .htaccess I prefer the second one, because it keeps the original image, and if you need to replace the watermark or images, you don't need to generate them again. What this does is before it shows the image from the folder, apache will run the script that add the watermark, and show the image with watermark

Steve-sy commented 7 years ago

I think you can use Intervention Image library, its very easy to integrate with laravel, Take a look to this link:

http://image.intervention.io/getting_started/installation

fletch3555 commented 7 years ago

Intervention is already included as a dependency of Voyager. It's how we resize the images on upload. You're free to add your own image modification configuration in the bread config for that field. All intervention values are(or at least should be) supported. Please see our docs for instructions on where to put the config, and intervention docs for what to use.

I haven't looked into whether intervention actually supports this, but that's an intervention issue, not a Voyager one, so I'm going to close this.

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.