Skip to content

Commit 4852649

Browse files
committed
MAGETWO-62464: Travis CI: GD2 imagettfbbox creates image with invalid size
1 parent 2a01d93 commit 4852649

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/internal/Magento/Framework/Image/Adapter/ImageMagick.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ public function createPngFromString($text, $font = '')
434434
}
435435
}
436436

437+
// Font size for ImageMagick is set in pixels, while the for GD2 it is in points. 3/4 is ratio between them
437438
$draw->setFontSize($this->_fontSize * 4 / 3);
438439
$draw->setFillColor($color);
439440
$draw->setStrokeAntialias(true);

0 commit comments

Comments
 (0)