We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db19d75 commit 377c772Copy full SHA for 377c772
1 file changed
codepoints.net/lib/Controller/OGImage.php
@@ -58,6 +58,7 @@ public function __invoke($match, Array $env) : string {
58
};
59
$svgimg->blurImage($blur, $blur);
60
}
61
+ /** @psalm-suppress InvalidOperand */
62
$svgimg->resizeImage((int)ceil(min(400.0, 400.0 * $ratio)), (int)ceil(min(400.0, 400.0 / $ratio)), imagick::FILTER_LANCZOS, 1);
63
$img->compositeImage($svgimg, Imagick::COMPOSITE_DEFAULT, 50 + (int)((400 - $svgimg->getImageWidth()) / 2), 50);
64
0 commit comments