Page 1 of 1

Dynamic Thumbnail - watermark positioning bug

Posted: 2011-08-01 15:29
by Hellkeeper
If you want to watermark images generated with tNG_DynamicThumbnail the positioning of the watermark is buggy ... you can't position it top/left or top/right ... (at least if you use imagemagick)

How to fix:
File: KT_image.class.php

Find:

Code: Select all

$tmp['top']['left'] = $tmp['bottom']['left'] .= 'West'; 
$tmp['top']['right'] = $tmp['bottom']['right'] .= 'East';
Replace:

Code: Select all

$tmp['top']['left'] .= 'West'; 
$tmp['bottom']['left'] .= 'West'; 
$tmp['top']['right'] .= 'East';
$tmp['bottom']['right'] .= 'East';