mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Fix #1426 : stamp text position
This commit is contained in:
@@ -308,7 +308,7 @@ class recordutils_image extends recordutils
|
|||||||
$font = $app['imagine']->font(__DIR__ . '/arial.ttf', $block['fontsize'], $block['fontcolor']);
|
$font = $app['imagine']->font(__DIR__ . '/arial.ttf', $block['fontsize'], $block['fontcolor']);
|
||||||
foreach ($block['lines'] as $line) {
|
foreach ($block['lines'] as $line) {
|
||||||
if ($line['t'] != '') {
|
if ($line['t'] != '') {
|
||||||
$draw->text($line['t'], $font, new Point(0, $txt_ypos), 0);
|
$draw->text($line['t'], $font, new Point($logo_reswidth, $txt_ypos), 0);
|
||||||
}
|
}
|
||||||
$txt_ypos += $line['h'];
|
$txt_ypos += $line['h'];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user