mirror of
https://github.com/Intervention/image.git
synced 2025-08-30 09:10:21 +02:00
Fix bug
This commit is contained in:
@@ -126,13 +126,15 @@ class TextModifier extends AbstractTextModifier implements ModifierInterface
|
||||
?ImagickDraw $draw = null,
|
||||
Point $offset = new Point(),
|
||||
): void {
|
||||
$frame->native()->annotateImage(
|
||||
$draw,
|
||||
$textline->position()->x() + $offset->x(),
|
||||
$textline->position()->y() + $offset->y(),
|
||||
$this->font->angle(),
|
||||
(string) $textline
|
||||
);
|
||||
if ($draw !== null) {
|
||||
$frame->native()->annotateImage(
|
||||
$draw,
|
||||
$textline->position()->x() + $offset->x(),
|
||||
$textline->position()->y() + $offset->y(),
|
||||
$this->font->angle(),
|
||||
(string) $textline
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user