SVG Generate Vector Resource File Batch and Edit Preview Tool

SVG Generate Vector Resource File Batch and Edit Preview Tool

1. SVG2Vector batch tool

First, the source code address: github.com/MegatronKin…

Secondly, download address: SVG generates Vector resource files and batch resources-CSDN library

Example 1 :

java -jar svg2vector-cli-1.0.0.jar -d D:\svg -o D:\vector

Indicates batch conversion of svg or svgz format pictures under the svg directory into vector resource files used by Android and outputs them to the vector directory.

Example 2 :

java -jar svg2vector-cli-1.0.0.jar -f D:\svg\test.svg -o D:\vector\test.xml

Indicates converting a single svg format image named test.svg into a vector resource file used by Android as test.xml

More commands:

  • [-d] Specify the target svg folder to be converted for batch processing
  • [-f] specifies a single target svg file to be converted for separate processing
  • [-o] Specifies the output directory for generating vector resource files
  • [-w] specifies the width of the generated vector resource file
  • [-h] Specifies the height of the generated vector resource file

1. SVG2Vector editing and preview tool

This is a Java Applet visualization applet that supports fast processing of svg or svgz format images to generate vector conversions, and supports editing and previewing of generated vector resource file images.

First, the source code address: github.com/MegatronKin…

Secondly, download address: SVG2Vector editing and preview tool resources-CSDN library

Steps for usage:

1. Start the tool

java -jar svg2vector-applet-1.0.0.jar

2. Drag svg, svgz, vector files to the application or click the file button to select the specified file

3. If you open an svg or svgz file, the vector code will be automatically generated, and the image content can be previewed on the right side.

4. If you are not satisfied with the image style attributes, you can modify it.

5. Click "File->Save", or shortcut Ctrl+S to save the final vector file

Guess you like

Origin blog.csdn.net/zengxx1989/article/details/134972224