All Projects → inconvergent → Svgsort

inconvergent / Svgsort

Licence: other
svg path sorter for more efficient (pen)plotting.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Svgsort

Oblivion
The language of Art
Stars: ✭ 414 (+155.56%)
Mutual labels:  svg, art
Gerbolyze
Render high-resolution bitmap images to PCB gerber files
Stars: ✭ 169 (+4.32%)
Mutual labels:  svg, art
Nuxt Optimized Images
🌅🚀 Automatically optimizes images used in Nuxt.js projects (JPEG, PNG, SVG, WebP and GIF).
Stars: ✭ 717 (+342.59%)
Mutual labels:  svg, optimization
Svgo
⚙️ Node.js tool for optimizing SVG files
Stars: ✭ 17,050 (+10424.69%)
Mutual labels:  svg, optimization
Pts
A library for visualization and creative-coding
Stars: ✭ 4,628 (+2756.79%)
Mutual labels:  svg, art
Imagemin
[Unmaintained] Minify images seamlessly
Stars: ✭ 4,948 (+2954.32%)
Mutual labels:  svg, optimization
Official Bash Logo
Everything you need to start using the official GNU Bash logo
Stars: ✭ 89 (-45.06%)
Mutual labels:  svg, art
Faviator
A simple easy favicon generator.
Stars: ✭ 155 (-4.32%)
Mutual labels:  svg
Svg Optimiser
A python module to clear up SVG files, especially those created in Inkscape
Stars: ✭ 158 (-2.47%)
Mutual labels:  svg
Aegis Icons
Unofficial 2FA entry icons for open source Android authenticator Aegis
Stars: ✭ 153 (-5.56%)
Mutual labels:  svg
Svgdom
Straightforward DOM implementation to make SVG.js run headless on Node.js
Stars: ✭ 154 (-4.94%)
Mutual labels:  svg
Mesh Flow Video Stabilization
Online video stabilization using a novel MeshFlow motion model
Stars: ✭ 154 (-4.94%)
Mutual labels:  optimization
Cpmoptimize
🚀 🐍 Optimizes Python bytecode calculating linear recurrences
Stars: ✭ 159 (-1.85%)
Mutual labels:  optimization
Godot Texture Painter
A GPU-accelerated texture painter written in Godot 3.0
Stars: ✭ 155 (-4.32%)
Mutual labels:  art
React Native Svg Charts
📈 One library to rule all charts for React Native 📊
Stars: ✭ 2,056 (+1169.14%)
Mutual labels:  svg
Galacticoptim.jl
Local, global, and beyond optimization for scientific machine learning (SciML)
Stars: ✭ 155 (-4.32%)
Mutual labels:  optimization
One
On-device Neural Engine
Stars: ✭ 162 (+0%)
Mutual labels:  optimization
Far Ho
Gradient based hyperparameter optimization & meta-learning package for TensorFlow
Stars: ✭ 161 (-0.62%)
Mutual labels:  optimization
Mini Svg Data Uri
Small, efficient encoding of SVG data URIs for CSS, HTML, etc.
Stars: ✭ 158 (-2.47%)
Mutual labels:  svg
Lazy Line Painter
Lazy Line Painter - A Modern JS library for SVG path animation
Stars: ✭ 1,918 (+1083.95%)
Mutual labels:  svg

Svg Spatial Sort

Reasonably efficient, greedy, path planning for plotting svg files.

Install

Install locally using:

./setup.py [install | develop] --user

Use

Use from the terminal like this:

svgsort input.svg out.svg

This will break down paths into continous sub paths before sorting. it will also allow travelling along paths (once) in both directions.

The default behaviour is to fit the result into an A3 sheet of paper. It will automatically rotate the paper orientation for the best possible fit, as well as align the drawing to the center. You can override the paper size by using --dim=A4 or, eg., --dim=30x40. To disable centering entirely use --no-adjust.

To ensure every path is drawn twice (once in each direction), you can use --repeat

You can disable splitting with --no-split. To see other options:

svgsort --help

Credits

The code in svgsort/svgpaththools is from https://github.com/mathandy/svgpathtools. With only minor changes by me. I had a number of strange issues when installing it via pip, so I decided to include it here. See the LICENSE file.

Todo

Strip out larger parts of svgpathtools, and refactor?

Contributing

This code is a tool for my own use. I release it publicly in case people find it useful. It is not however intended as a collaboration/Open Source project. As such I am unlikely to accept PRs, reply to issues, or take requests.

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].