All Projects → a-student → Svgtovectordrawableconverter

a-student / Svgtovectordrawableconverter

Batch converter of SVG images to Android vector drawable XML resource files. Online version of the converter is here:

Projects that are alternatives of or similar to Svgtovectordrawableconverter

Pixelfarm
From Vectors to (sub) Pixels, C# 2D Rendering Library
Stars: ✭ 120 (-64.81%)
Mutual labels:  vector-graphics, svg
Svglib
Read SVG files and convert them to other formats.
Stars: ✭ 139 (-59.24%)
Mutual labels:  vector-graphics, svg
Rad Lines
Beautiful Vector Generator Tool
Stars: ✭ 121 (-64.52%)
Mutual labels:  vector-graphics, svg
Graphicsjs
A lightweight JavaScript graphics library with the intuitive API, based on SVG/VML technology.
Stars: ✭ 937 (+174.78%)
Mutual labels:  vector-graphics, svg
Vectorlogozone
3,000+ gorgeous SVG logos, perfect for your README or credits page
Stars: ✭ 239 (-29.91%)
Mutual labels:  vector-graphics, svg
Pathrenderinglab
Repository for research on complete SVG rendering
Stars: ✭ 83 (-75.66%)
Mutual labels:  vector-graphics, svg
Dvisvgm
A fast DVI, EPS, and PDF to SVG converter
Stars: ✭ 134 (-60.7%)
Mutual labels:  vector-graphics, svg
Scour
Scour - An SVG Optimizer / Cleaner
Stars: ✭ 443 (+29.91%)
Mutual labels:  vector-graphics, svg
Picasso
Picasso is a high quality 2D vector graphic rendering library. It support path , matrix , gradient , pattern , image and truetype font.
Stars: ✭ 205 (-39.88%)
Mutual labels:  vector-graphics, svg
Psvg
Programmable Scalable Vector Graphics -- drawings that draw themselves
Stars: ✭ 177 (-48.09%)
Mutual labels:  vector-graphics, svg
Macsvg
macSVG - An open-source macOS app for designing HTML5 SVG (Scalable Vector Graphics) art and animation with a WebKit web view ➤➤➤
Stars: ✭ 789 (+131.38%)
Mutual labels:  vector-graphics, svg
Php Svg
Vector graphics (SVG) library for PHP
Stars: ✭ 256 (-24.93%)
Mutual labels:  vector-graphics, svg
Svg
Fork of the ms svg library (http://svg.codeplex.com/)
Stars: ✭ 676 (+98.24%)
Mutual labels:  vector-graphics, svg
Scalable Vector Graphics Plugin For Paint.net
Paint.NET filetype plugin for loading SVG (Scalable Vector Graphics) and its compressed variant SVGZ files.
Stars: ✭ 109 (-68.04%)
Mutual labels:  vector-graphics, svg
Zrender
A lightweight graphic library providing 2d draw for Apache ECharts
Stars: ✭ 5,122 (+1402.05%)
Mutual labels:  vector-graphics, svg
Svg.skia
An SVG rendering library.
Stars: ✭ 122 (-64.22%)
Mutual labels:  vector-graphics, svg
Convert Svg
Node.js packages for converting SVG into other formats using headless Chromium
Stars: ✭ 133 (-61%)
Mutual labels:  svg, converter
Density Converter
A multi platform image density converting tool converting single or batches of images to Android, iOS, Windows or CSS specific formats and density versions given the source scale factor or width/height in dp. It has a graphical and command line interface and supports many image types (svg, psd, 9-patch, etc.) aswell as some lossless compressors like pngcrush.
Stars: ✭ 222 (-34.9%)
Mutual labels:  svg, converter
Gerbolyze
Render high-resolution bitmap images to PCB gerber files
Stars: ✭ 169 (-50.44%)
Mutual labels:  vector-graphics, svg
vectorexpress-api
Vector Express is a free service and API for converting, analyzing and processing vector files.
Stars: ✭ 66 (-80.65%)
Mutual labels:  converter, vector-graphics

SVG to VectorDrawable Converter

Batch converter of SVG images to Android VectorDrawable XML resource files.

Put the output XML files into the ‘res/drawable’ directory of your app and reference to them in XML / Java code as to ordinary drawables.

The online version of the converter completely replaced this one.

Please use that instead. This project is obsolete!

Not supported SVG features

These SVG elements are not supported by VectorDrawable: patterns, masks, images, etc.

VectorDrawable fill-rule is always non-zero and cannot be changed prior to Android 7.0 (Nougat). If you end up with areas filled that should not be filled, that is because the SVG image was created using even-odd rule instead. There are three ways to deal with this problem: try specifying the --fix-fill-type option, manually edit SVGs in vector graphics software or convert for Android 7.0+.

Specifying the --fix-fill-type option

This option is experimental, but it is worth trying first. The option uses complex mathematics to rebuild paths in such a way that rendering with any fill-rule leads to the same result.

Manual editing

If you are using Inkscape, open ObjectFill and Stroke… and in the Fill tab choose Fill is solid unless a subpath is counterdirectional. If you see improperly filled area after this operation, using F2 tool select subpath around that area and apply PathReverse command from the main menu.

If you are using Sketch, select the path, right to the Fills property title there is settings icon, click it and choose Non-Zero option. To reverse the path direction apply LayerPathsReverse Order command from the main menu.

Converting for Android 7.0

This option does not fit all, because it requires setting minSdkVersion to 24 at least (Android 7.0 or later) in ‘build.gradle’. Alternatively, you can try AndroidX VectorDrawableCompat.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].