在javascript中SVG到PNG [英] SVG to PNG in javascript

查看:52
本文介绍了在javascript中SVG到PNG的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人给我一个从SVG转换为PNG图像的解决方案吗?

解决方案

参考:

在浏览器中将SVG转换为图像(JPEG,PNG等) [ ^ ]


以下是我的建议:唤醒:HTML5本身支持SVG,支持我最体面的浏览器,并且可能在您完成下一个项目后得到普遍支持。我希望没有必要解释为什么SVG比任何光栅图形都要好得多。 (无限几乎可以理解为:矢量图形可以缩放到任意比例而不会有任何质量损失,任何像素化。)



-SA

Anyone gives me a solution for converting from SVG to PNG image?

解决方案

refer:
Convert SVG to image (JPEG, PNG, etc.) in the browser[^]


Here is my advice: wake up: SVG is natively supported in HTML5 which is supported my most decent browsers and might become universally supported sooner then you finish your next project. I hope there is no need to explain why SVG is infinitely better than any raster graphics. ("Infinitely" can be understood almost literally: vector graphics can be scaled to any arbitrary scale without any loss of quality, any pixellation.)

—SA


这篇关于在javascript中SVG到PNG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆