Dynamic Thumbnail - watermark positioning bug

Any tips and tricks that has to with the ADDT that doesn't fit into one of the other categories
Hellkeeper
Posts: 15
Joined: 2010-08-31 16:59

Dynamic Thumbnail - watermark positioning bug

Post by Hellkeeper » 2011-08-01 15:29

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';