我有这个命令可以将 SVG 转换为图像:
exec("convert -size 400x400 test.svg test.png", $out, $rcode);
但它适用于字段,当我实际上需要使用 DOM 变量时。
请如何将生成的 PNG 转换为 $variable insted of file(在 PHP 中)。
php svg image exec
exec ×1
image ×1
php ×1
svg ×1