将 Vector Drawable 转换为 SVG

sad*_*dat 2 android android-drawable android-vectordrawable

是否有任何工具可以将 Vector Drawable 转换为 SVG?我丢失了原始 svg 文件,现在我想减小图像的大小。目前,我有,

<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="1200dp"
    android:height="1200dp"
    android:viewportHeight="1200"
    android:viewportWidth="1200">
Run Code Online (Sandbox Code Playgroud)

我想将其设为 180x180。提前致谢。

小智 7

看看这个变形金刚

Shapeshifter 工具可以导入 VectorDrawable XML 文件并导出回 SVG 文件

  • 对我来说它不支持渐变(矢量可绘制中的`&lt;gradient&gt;`标签),所以我无法在我的情况下使用它 (2认同)

Tha*_*man 5

看看这个Convert VectorDrawable to SVG

Vector Drawable 格式与 SVG 非常相似。只需进行一些修改,您就可以将 xml drawable 转回 SVG

归功于制作这个将 xml drawable 转换回 SVG https://gitlab.com/Hyperion777/VectorDrawable2Svg 的这个 python 脚本的人