I'm hoping for a "simple" way to watermark Elk attachment images. Hardly being a coder, php is not in the cards. One intriguing possibility is using nginx. There is an nginx module capable of watermarking jpg/png/gif images.
https://github.com/intaro/nginx-image-filter-watermark
I've compiled the module in nginx. It works perfectly on jpg images served from a configured directory. Cool!! But would there be any way to use it for watermarking elk attachments?
For SMF there is an add-on, but I have no idea how to port it to elkarte
https://github.com/realdigger/SMF-Watermark
Same here. That would be an acceptable solution, if someone could do that. Otherwise the nginx module may be the way to go.
That module should work I think for downloaded images but may not for those that are page loaded or "saved as", I'm just not sure on those, I am intrigued though!
Did you try setting the directory to your attachment directory ? Just curious as to what happened.
It makes sense setting the location to the attachment directory would work. Since the files are stored as .elk may create a miss as the script expects a .jpg. Any idea how to work around that? Edit the module source file to include .elk instead of .jpg and recompile? I'm grasping at straws here. :D
Yeah thinking about it since things are run through dlattach functions, we would need to make the changes there .... perhaps we could use this module to offload the work, but still need to make the change inside of elkarte itself.
Sounds like the correct path. The module works in as far as it will watermark avatars stored in a custom directory. Would this require significant changes? Or would it be easier to do it in php?
I think better stick with what is available for now
@badmonkey. Not sure if there is anyone who wants to undertake it.