0
嘿,我遇到了以下問題。 我想的dinamically生成(通過PHP)SVG圖像轉換爲圖像,從而用戶可以右擊和「保存圖像..」將SVG轉換爲圖像(PNG,JPG)
在圖像被顯示爲一個SVG例如 這樣的時刻:
<embed id="image_wuerfel" classid="image/svg+xml"
src="/svg/models.php?s=c&w=5&h=5&l=5&m=1&desc=1&wh=250&wl=250"
type="image/svg+xml" width="250" height="250">
</embed>
它發送GET - 請求到models.php,SVG圖像被生成並返回。
有沒有像JS庫或東西,將它轉換成圖像文件?
這個問題呢? http://stackoverflow.com/questions/4809194/convert-svg-image-to-png-with-php –