【发布时间】:2013-12-29 07:54:03
【问题描述】:
如何使用 PHP 将 JPG/PNG 转换为 SVG?
我知道它不会被矢量化,但我需要 SVG 格式的。
我不想使用 PHP 以外的任何其他软件。
类似这样的:
<?php
$image_to_cenvert = 'image.jpg';
$content = file_get_contents($image_to_cenvert);
$svg_file = fopen('image.svg','w+');
fputs($svg_file,$content);
fclose($svg_file);
?>
【问题讨论】:
-
coreldraw 的CorelTrace 可以做到这一点,非常棒。
-
你能解决这个问题吗?