canvas2svg
svgcleaner
Our great sponsors
canvas2svg | svgcleaner | |
---|---|---|
3 | 7 | |
670 | 1,437 | |
2.5% | - | |
0.0 | 2.1 | |
5 months ago | over 2 years ago | |
JavaScript | Rust | |
MIT License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
canvas2svg
-
Forking Chrome to Turn HTML into SVG
Reminds me of https://github.com/gliffy/canvas2svg at a different level of abstraction.
I believe PDF.js incorporated some form canvas2svg to try and get a SVG backend working which would allow high resolution printing to PDF but not sure where that's at. I believe printing through PDF.js is blurry due to memory constraints since with normal canvas pdf pages just end up as bitmaps sent to the printer.
SVG ends up staying vector through Chromiums print pipeline resulting in much less memory usage while having much higher dpi final output. I would imagine this is due to SVG being turned into Skia drawing commands that end up as PDF that then gets printed through PDFium?
-
Snapshot of planetary positions at a given date. Custom code, 10 tool changes, plotted on a 3D printer.
I used JavaScript to generate planetary positions and orbit paths as SVG with canvas2svg by following this for the mathematical side https://ssd.jpl.nasa.gov/planets/approx_pos.html
-
Essential SVG tools
Canvas2SVG - I have a feeling I'll get to know this library well someday. Apache Batik - I used it quite a bit in the early days but it never took root in my toolchain. SVGJS It offers compelling shortcuts, I'm just a fan of vanilla JS. This also goes for SNAP SVG
svgcleaner
-
TinyVG – an alternative binary encoded vector graphics format
I'm not sure, but it seems svgcleaner can remove unused and invisible graphical elements[1]. I don't know if TinyVG preserves them. but if it does, it's not a fair comparison.
Did you try converting svgcleaner processed SVG to a TVG?
[1] https://github.com/RazrFalcon/svgcleaner
-
Name a program that doesn't get enough love!
oxipng, pngquant and svgcleaner — optimizing images
-
Inkscape 1.2 as a Godot Graphics Tool
One of the new features of Godot 4 is svg with embeds like svg, jpg and png. Also if you have svg fonts, you can clean it with https://github.com/RazrFalcon/svgcleaner and it may import.
-
Parcel v2 releases from beta, includes new Rust compiler for huge performance gains
svgcleaner is designed for standalone SVG files, and will fail on or butcher a significant fraction of inline SVG icons and the likes because it can’t cope with currentColor.
-
Essential SVG tools
There's also SVG Cleaner which has some compelling benefits over SVGO.
-
Tech stack for my open source icons project (Iconduck)
svgcleaner is a CLI (command line) tool which cleans up vector files. Often, vector files will have a lot of extra “stuff” in them that aren’t needed for the presentation side of things, so this helps to reduce the file size. I store both the original vector of the icon, and a cleaned version.
What are some alternatives?
resvg - An SVG rendering library.
xsv - A fast CSV command line toolkit written in Rust.
imagetracerjs - Simple raster image tracer and vectorizer written in JavaScript.
svgbobrus - Convert your ascii diagram scribbles into happy little SVG
satori - Enlightened library to convert HTML and CSS to SVG
Debian Repository Builder - A project for automatically generating and maintaining Debian repositories from a TOML spec.
svg_crop - Remove blank space from around any SVG instantly.
euclider - A higher dimensional raytracing prototype with non-euclidean-like features
lib2geom
Servo - Servo, the embeddable, independent, memory-safe, modular, parallel web rendering engine
webpack - A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
iota - A terminal-based text editor written in Rust