1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-24 14:32:52 +02:00

Set alpha blending before writing ttf text with GD driver

This commit is contained in:
Oliver Vogel
2024-01-08 11:44:42 +01:00
parent 72680e8138
commit f8c6f315a2

View File

@@ -27,6 +27,7 @@ class TextModifier extends AbstractTextModifier
foreach ($image as $frame) { foreach ($image as $frame) {
if ($this->font->hasFilename()) { if ($this->font->hasFilename()) {
foreach ($lines as $line) { foreach ($lines as $line) {
imagealphablending($frame->native(), true);
imagettftext( imagettftext(
$frame->native(), $frame->native(),
$this->adjustedFontSize(), $this->adjustedFontSize(),