GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - photon-flip/watermark-module: A module that repositions the webtrees watermark.

BranchesTags
Open more actions menu

Latest commit

 

History

54 Commits
54 Commits

Folders and files

NameName
Last commit message
Last commit date
resources
resources
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
MyImageFactory.php
MyImageFactory.php
 
 
README.md
README.md
 
 
WatermarkModule.php
WatermarkModule.php
 
 
module.php
module.php
 
 

Repository files navigation

Watermark Module for webtrees

This webtrees custom module adds a watermark to media images. Administrators can choose one of the included watermark images and select where it appears on the image.

Requirements

  • webtrees 2.2
  • The same PHP extensions as webtrees uses for image processing

The module is structured and tested against the webtrees 2.2 image API. Its translation loader also supports the planned webtrees 2.3 translation API; final 2.3 compatibility will be verified when webtrees 2.3 is publicly available.

Installation

  1. Download the latest release.
  2. Unzip it into the modules_v4 directory of your webtrees installation.
  3. Sign in to webtrees as an administrator and enable Watermark Module in the control panel.
  4. Open the module configuration page to choose a watermark image and its position.

Configuration

The configuration page shows previews of the three included PNG images. Choose exactly one:

  • Watermark
  • Default webtrees watermark
  • Copyright watermark

Choose any of the nine standard positions: top, centre, bottom, left, right, or a corner. To use your own image, replace resources/img/watermark.png in the module folder and select Watermark in the configuration page.

Important: cached media images

webtrees stores generated watermarked media images in its data-folder cache for a long time. Therefore, do not expect a changed watermark image or position to be visible immediately.

After changing the configuration, clear the webtrees data-folder cache in the control panel. Then refresh the browser cache or use a private browser window. If the old image is still displayed, clear the PHP OPcache or restart PHP-FPM/the web server. New requests will then generate media images with the selected watermark and position.

Translation

The module uses the standard webtrees PO/MO translation system. English source strings are in resources/lang/default.pot; translations can be added as language-specific PO files and compiled to MO files.

Support

Please report errors or suggestions in the GitHub issue tracker.

License

Copyright © 2024 Murray J Peterson

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

About

A module that repositions the webtrees watermark.

Resources

Readme
GPL-3.0 license
Activity

Stars

3 stars

Watchers

2 watching

Forks

3 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.