For issues related to the current stable release please use it's own Help forum.
IMPORTANT:Please read this before using an git or nightly build version: wiki.webtrees.net/en/GIT

Before asking for help please read "How to request help" by clicking on that tab above here.

TOPIC: Custom defined watermark image

Custom defined watermark image 5 months 1 week ago #1

  • nejman
  • nejman's Avatar
  • Offline
  • New
  • Posts: 15
Hi,
I'm testing a webtrees for several weeks. Great app, and huge improvements in the beta. I like watermark feature, but I cannot find any option how to set a custom image for watermarking... Is is possible to set the watermark image manually? I'm preferring to put watermark image with my pedigree url, and not big W image.
The administrator has disabled public write access.

Custom defined watermark image 5 months 1 week ago #2

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Gold
  • Greetings from Utrecht, Holland
  • Posts: 1432
Try replacing (with ftp) the file /resources/assets/img/watermark.png
stamboom.BertKoor.nl runs on webtrees v1.7.9
Last Edit: 5 months 1 week ago by bertkoor.
The administrator has disabled public write access.

Custom defined watermark image 5 months 1 week ago #3

  • joeysun
  • joeysun's Avatar
  • Offline
  • New
  • Posts: 50
bertkoor,
Sorry to be so stupid, but I cannot find the file nor the folders involving /resources/assets/img/watermark.png
Doug
webtrees v1.7.9 at Our Family Jiapu 家譜/家谱
PHP Version 7.0.30
The administrator has disabled public write access.

Custom defined watermark image 5 months 1 week ago #4

  • Luenissla
  • Luenissla's Avatar
  • Offline
  • Junior
  • Posts: 127
I too. ;-)

But the watrmarks in my tree are not a big "W":
datenpool.bvff.de/individual.php?pid=1-I...SCHLOSS_BDP_UTF8.ged
Best regards
Hans-Joachim (Lünenschloß)
The administrator has disabled public write access.

Custom defined watermark image 5 months 1 week ago #5

  • nejman
  • nejman's Avatar
  • Offline
  • New
  • Posts: 15
joeysun> Are you using the latest commit from GIT? Maybe other versions are using different image or text. In my build I can found watermark.png image and this file is really used for watermarking. I checked the code and it looks the watermarking is done in the vendor/league/glide/src/Manipulators/Watermark.php
file. I'm working on small patch that replace image with watermarking text...
The administrator has disabled public write access.

Custom defined watermark image 5 months 1 week ago #6

  • nejman
  • nejman's Avatar
  • Offline
  • New
  • Posts: 15
Luenissla: Did you patched the latest version? Or do you using some old version? it looks the patch is easy by puting $image->text in Watermark.php file. But maybe cleaner solution is add a new option "watermark text" in manage tree preferences ...
The administrator has disabled public write access.

Custom defined watermark image 5 months 1 week ago #7

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Gold
  • Greetings from Utrecht, Holland
  • Posts: 1432
New style: dev.webtrees.net/demo-dev/index.php?ged=...pe=&filter=&action=1

The big W as watermarks is only in the latest beta. What version do you run? Did you maybe try the beta and reverted back? Then the watermarked images stayed there.

v1.7 (current release) and previous put the title of the tree across (as on your and my own tree)
stamboom.bertkoor.nl/mediaviewer.php?mid=M87&ged=BertKoor
(click on the image, I don't watermark thumbnails)
stamboom.BertKoor.nl runs on webtrees v1.7.9
Last Edit: 5 months 1 week ago by bertkoor.
The administrator has disabled public write access.

Custom defined watermark image 5 months 1 week ago #8

  • Luenissla
  • Luenissla's Avatar
  • Offline
  • Junior
  • Posts: 127
No i did not patched. I use the version 1.7.9.
Best regards
Hans-Joachim (Lünenschloß)
The administrator has disabled public write access.
Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

Custom defined watermark image 5 months 1 week ago #9

  • joeysun
  • joeysun's Avatar
  • Offline
  • New
  • Posts: 50
Are you using the latest commit from GIT?

I also use only 1.79 stable. Is there a list of beta patches or should I install the latest commit? Sorry, but totally intimidated by Git and really unsure what to download. Sometime the enemy of a good website is trying to make it better.

I know 2.0 is coming out, so I would like to install all the greatest and most stable patches. Can I get someone to ELI5 (explain like I'm 5y/0) and point me to the other stable patches I should install
Doug
webtrees v1.7.9 at Our Family Jiapu 家譜/家谱
PHP Version 7.0.30
The administrator has disabled public write access.

Custom defined watermark image 5 months 1 week ago #10

  • fisharebest
  • fisharebest's Avatar
  • Online
  • Administrator
  • Posts: 10445
I changed from "watermark text" to "watermark image" because the text/graphics functions do not work well with non-latin characters (e.g. hebrew, arabic, chinese, etc.).

> Try replacing (with ftp) the file /resources/assets/img/watermark.png

The watermarked files are cached.

If you change this file, you may need to delete the cache files, which are currently stored in data/thumbnail-cache/*
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Custom defined watermark image 5 months 1 week ago #11

  • fisharebest
  • fisharebest's Avatar
  • Online
  • Administrator
  • Posts: 10445
> Can I get someone to ELI5 (explain like I'm 5y/0) and point me to the other stable patches I should install

1.7.9 is the latest stable release. Most people should stay with this version.
I know it is 18 months old, but it is stable/mature and has no significant issues.

I originally estimated that the internal rewrite for 2.0 would take 6 months.
It has actually taken nearly three times this. Mostly because I kept finding
more things that needed to be updated.

But, I am making steady progress, and have only a few more modules to
update before I can release 2.0.0-alpha.

This should be safe/stable, but it will need work on styling/themes.

I'll then work on the styling/themes (and any feedback) to create one or more beta releases.

Once it is looking pretty, I will release 2.0.0 and people should see it in
their auto-update.

TL;DR - stick with 1.7.9.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Custom defined watermark image 5 months 1 week ago #12

  • joeysun
  • joeysun's Avatar
  • Offline
  • New
  • Posts: 50
thank you fisharebest.

I did not intend to sound like I was complaining about when 2.0 would emerge. I just wanted to bring my 1.79 as up to date before all the attention of the Forum turns to 2.0.

I will just install the watermark patch.

Again, I want to thank you and all the developers for such a wonderful job in webtrees. All the work is truly appreciated.
Doug
webtrees v1.7.9 at Our Family Jiapu 家譜/家谱
PHP Version 7.0.30
The administrator has disabled public write access.
Moderators: makitso
Powered by Kunena Forum