Difference between revisions of "Watermark"

From TNG_Wiki
Jump to: navigation, search
(Sites using this mod)
(Sites using this mod)
 
(3 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
| mod_summary    = Shows a watermarked image instead the original image.<hr>
 
| mod_summary    = Shows a watermarked image instead the original image.<hr>
 
| mod_validation  =  
 
| mod_validation  =  
| mod_last_update = 06 apr 2020
+
| mod_last_update = 10 june 2020
| download_link  = [http://compteur.mkirsch.be/compte.php?id=32&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}}  WatermarkV12.2.0.1a]
+
| download_link  = [http://compteur.mkirsch.be/compte.php?id=46&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}}  Watermark_V12.2.0.1b]
 
| download_stats  = [http://compteur.mkirsch.be/collect.php?action=collect Montrer les statistiques]
 
| download_stats  = [http://compteur.mkirsch.be/collect.php?action=collect Montrer les statistiques]
 
| mod_author      = [[User:MichelKirsch|Michel Kirsch]]
 
| mod_author      = [[User:MichelKirsch|Michel Kirsch]]
Line 13: Line 13:
 
| mod_support    = [http://tng.community/ TNG Community Forums]
 
| mod_support    = [http://tng.community/ TNG Community Forums]
 
| mod_contact    = [[Image:Image mail.png|MyMail]]
 
| mod_contact    = [[Image:Image mail.png|MyMail]]
| mod_version    = for TNG v12
+
| mod_version    = v12.2.0.1b for TNG v12
 
| min_TNG_ver    = n.c
 
| min_TNG_ver    = n.c
 
| max_TNG_ver    = v12+
 
| max_TNG_ver    = v12+
Line 114: Line 114:
 
! Release&nbsp;Date
 
! Release&nbsp;Date
 
! Contents
 
! Contents
 +
|-
 +
| V12.2.0.1b
 +
| 10 Jun 2020
 +
| Doesn't try to watermark if file's MIME type is not 'image'.
 
|-
 
|-
 
| V12.2.0.1a
 
| V12.2.0.1a
Line 139: Line 143:
 
| [[User:MichelKirsch|Michel Kirsch]]
 
| [[User:MichelKirsch|Michel Kirsch]]
 
| Developper of the Mod
 
| Developper of the Mod
| V12.2.0.1a
+
| V12.2.0.1b
| V12.2.0
+
| V12.3.0
 
| FR/EN/NL/D/SP
 
| FR/EN/NL/D/SP
 +
|-
 +
| [http://racine-ad.fr/TNG/index.php Racine d'Alsace]
 +
| [[User:Louis42|J-Louis Valory]]
 +
| Private - T17 customized
 +
| 12.2.0.1
 +
| 12.3
 +
| FR
 
|-
 
|-
 
| [http://www.potie.eu Famille Potié et ses Maisons Alliées]
 
| [http://www.potie.eu Famille Potié et ses Maisons Alliées]

Latest revision as of 20:16, 10 June 2020

Restricted Downloads of Watermark are restricted to logged in users. If you do not have a user account on the TNG Wiki use the Request Account link to request a user account Restricted


In TNGv12 and beyond, this mod uses the new guidelines for TNG v12+ cust_text.php files
If you are using TNGv12+, and any cust_text.php file in this mod is marked with a Bad Target error, you need to update your cust_text.php files before you can install this mod. [Show instructions]

If you upgraded to TNGv12+, and did not update your cust_text.php files as instructed in the upgrade readme script, then you must use the TNG Mod Manager to update them. To do so:

  1. Go to Mod Manager, and select its "Recommended Updates" tab.
    (If the "Recommended Updates" tab is not visible, then go to the Mod Manager Options tab, select "Display Settings", and turn on the "Recommended Updates" tab.)
  2. Click the "Update" button in the "Recommended Updates" tab.
    Installed mods do not interfere with the update, and if you already have (or think you may have) run this update, it will not hurt for you to run it again.

[See details in the TNGv12 Change Impacts Article][Hide the instructions]


Watermark
Summary Shows a watermarked image instead the original image.
Validation
Mod Updated 10 june 2020
Download link Watermark_V12.2.0.1b
Download stats Montrer les statistiques
Author(s) Michel Kirsch
Homepage Racines luxo-hennuyeres
Mod Support TNG Community Forums
Contact Developer MyMail
Latest Mod v12.2.0.1b for TNG v12
Min TNG V n.c
Max TNG V v12+
Files modified
admin_users.php
albumlib.php
browsemedia.php
functions.php
genlib.php
globallib.php
headstones.php
img_viewer.php
languages/English-UTF8/cust_text.php
languages/English/cust_text.php
languages/French-UTF8/cust_text.php
languages/French/cust_text.php
mostwanted.php
personlib.php
randomphoto.php
showalbum.php
showmap.php
showmedialib.php
templates/template10/index.php
Related Mods
Notes



Purpose of the Mod

This Mod watermarks your images on the fly and hides their names to prevent image theft. Your original images are not altered.
The watermark is customizable: text, color, tilt, transparency, repetition and font.
Your users have the option to request an unwatermarked copy of the photo they are viewing

You can designate some of your users (via Administration/Users) to view the photos without watermark

Thanks to

Ron, Philippe, Jean-Louis, Pascal and Alain Evrard for their tests, ideas and comments to realize this first version !
DeepL.com for some translates...

Mod Developer

Written by : Michel Kirsch from Charleroi - Hainaut - Belgium

Requirements

A TNG V12.2.0 installation in working order.
Users of the Mod Add cousins button will update their version with the version 1b to standardize the appearance of the table of users.


IMPORTANT : Before installing

- Before installing, it is judicious to make a backup copy of the files that will be modified by this mod.

TNG Modules Impacted

You can click on the [Expand] link on the right to display the list of TNG Modules change and the [Collapse] link to hide this section again.

The following TNG Modules are modified, and should be backed up prior to installing this mod:

admin_users.php
albumlib.php
browsemedia.php
functions.php
genlib.php
globallib.php
headstones.php
img_viewer.php
languages/English-UTF8/cust_text.php
languages/English/cust_text.php
languages/French-UTF8/cust_text.php
languages/French/cust_text.php
mostwanted.php
personlib.php
randomphoto.php
showalbum.php
showmap.php
showmedialib.php
templates/template10/index.php

Files created/copied by this Mod

Source Destination
watermark_1/watermark_no.gif TNG root/img/watermark_no.gif
watermark_1/watermark_yes.gif TNG root/img/watermark_yes.gif
watermark_1/watermodfont.ttf TNG root/font/watermodfont.ttf
(protected)watermark_1/watermark_mod_allowedusers.txt TNG root/$extspath/watermark_mod_allowedusers.txt
(protected)watermark_1/watermark_mod_vars.php TNG root/$extspath/watermark_mod_vars.php


INSTALLATION

  • Unzip the received file directly in the "mods" subdirectory of your TNG installation.
  • Via Mod Manager, install the Mod.

Upgrade

  • Uninstall and eventually Delete the current Mod.
  • Proceed as for an installation with the new Mod.
  • Your files watermark_mod_vars.php and watermark_mod_allowedusers.txt are copy protected and will not crushed by the new installation.

Known Problems

This Mod is NOT compatible with the Admin_Users_Menu Mod. Contact me for a solution.
With some too large files, you may receive a message "Fatal error: Allowed memory size of ...". Refresh your browser (F5). If the probllem persists, you can then reduce the number of results during queries ( via the menu Administration/Setup/General Settings/Miscellaneous/Max Search Results:). Try to reduce this number...


In the event of a problem

  • Try using the Mod Manager Remove capability
  • Copy the backup of the affected files back to your TNG directory
  • Retry. If the problem persists, open an issue in the TNG Community Forums or on the page of Michel Kirsch. At worst, send a mail to MyMail

Parameters

Text: You can use 2 lines for the watermark. These two lines are separated in the Text parameter by " -x- " (space dash x space dash)

In addition to the common options text, color, transparency, font, owner and proportionality,

If you use the option Angle = "45"
You can determine whether the watermark will be repeated 1, 2 or 3 times on the image. 'Only the first line of text appears.
If you use the option Angle = "0"
You can use the vpos option to "top" or "bottom". The Repeat option must be imperatively set to "1".
These are the only cases where both lines of the watermark appear.
Repeat on "2" or "3" deletes the second line.

Historic of modifications

Version Release Date Contents
V12.2.0.1b 10 Jun 2020 Doesn't try to watermark if file's MIME type is not 'image'.
V12.2.0.1a 06 apr 2020 Fix problems with the mysqli_fetch_all() function, replaced with mysqli_fetch_array()
V12.2.0.1 04 mar 2020 First online version.

Sites using this mod

If you download and install this mod, please add your TNG site to the table below:
If you have any problem to do it, send me a mail...

URL User Note Mod-Version TNG-Version User-language
Racines luxo-hennuyeres Michel Kirsch Developper of the Mod V12.2.0.1b V12.3.0 FR/EN/NL/D/SP
Racine d'Alsace J-Louis Valory Private - T17 customized 12.2.0.1 12.3 FR
Famille Potié et ses Maisons Alliées Stillman V12.2.0.1 FR
Généalogie des familles Meresse et Facon Philippe Meresse V12.2.0.1 12.2 AN/FR/NL
Drzewo rodziny Góźdź & Lisiak: genealogia Slawekg V12.2.0.1a 12.2 EN
Site Jgrantham V12.2.0.1
Home Page Dominiccovell V12.2.0.1a 12.2 EN
Backus Family History Dbackus2 V12.2.0.1 12.2 EN
Startpagina Abram V12.2.0.1a 12.2 EN
Crawford County, Pennsylvania Genealogy Gateway Fraber V12.2.0.1a 12.2 EN
Auf den Spuren meiner Vorfahren Uwe Haase Public/Private V12.2.0.1 V12.3 DE,EN
Généalogie des Malvache, Hermary... Cédric Malvache v12.2.0.1a v12.3.0 FR/EN/SP
Les Lapierre d'Amérique Normand Lapierre Private v12.2.0.1a v12.3.0 FR/EN

Visualization

Watermark Examples

This image shows different styles of watermarks. From L to R:
(1) Angle 45 - Repeat 1 - Transparency 80 - (2) Angle 45 - Repeat 2 - Transparency 20 - (3) Angle 0 - vpos bottom - Repeat 1 - 2 lines - Proportioned
(4) Idem - vpos top - NOT proportioned - (5) Angle 0 - Repeat 3 - Proportioned

watermark_showmedia

The bottom of showmedia.php page. Remark the filename unrelevant, the owner field and the possibility for user to command a not watermarked image.

watermark_users

The user table with the new column Wmk?. A green icon means that this user will view the photos WITHOUT watermark.