occult
scour
Our great sponsors
occult | scour | |
---|---|---|
6 | 5 | |
63 | 738 | |
- | 1.8% | |
0.0 | 0.0 | |
over 1 year ago | 10 months ago | |
Python | Python | |
MIT License | Apache License 2.0 |
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.
occult
-
Variation of Two Toruses (Tori?)
Without hardly optimizing my code, i use vpype + occult extension (many thanks to Loic Goulefert for that).
-
Axidraw / Inkscape masking problem
How about this occult?
-
Vsketch advice needed. Description in comments.
As u/robobachelor said, you can use vpype occult plugin to perform the occlusion. I'm unsure (and cannot test right now) if the fill pattern generated by vsketch is drawn before or after the circle outline. If it's drawn before, you'll have to place each circle in a different layer, then perform occlusion with vpype read input.svg occult -i write output.svg (note the -i option). You can also invoke occult directly from vsketch with vsk.vpype(occult -i).
-
[Help] Cropping SVG problem
vpype: https://github.com/abey79/vpype occult plugin for vpype: https://github.com/LoicGoulefert/occult
-
Chrysalide
It is generated with code only. I scale, rotate and translate a random polygon, then remove hidden lines with occult, a plugin I made for vpype (worth checking for SVG optimization).
-
Stitches
Here it is : https://github.com/LoicGoulefert/occult
scour
-
Is it possible to save multiple files as optimized SVGs at once?
You could install the optimizer Inkscape uses internally and process your files with a super simple shell script. When reading the inkscape command line help, it does not seem to offer any option to export optimized SVGs from there
-
Convert pdf to optimized SVG from command line [Help]
Inkscape uses Scour under the hood for optimized SVG export.
-
Batch convert svg icons into a symbol set?
First make sure all your icons are saved as 'Optimized SVG' to remove Inkscape specific data and unnecessary id-attributes. Inkscape uses 'Scour' for this under the hood, so you can just use that directly to convert your files from the command line. I recommend the options --strip-xml-prolog --remove-metadata --enable-id-stripping --renderer-workaround. Now you only need to replace the outermost ... with ... for each file and remove all attributes on it, except width, height viewBox and preserveAspectRatio. Since we've stripped the XML-declaration with Scour, simply concatenate all files, wrap the result in a new element and lastly give your symbols unique ids and make sure all remaining referenced ids are unique between symbols.
-
Open Source Favicon Generation & Optimisation in 2022
The script optimised the SVG using Scour. This removes some metadata and also shortens IDs as well as strip out comments. For the PNG files we used OptiPNG on the maximum optimisation setting. This can be slow on larger files, but for favicons should not take long. Here’s the before and after comparison of files sizes for a particular favicon, using the script:
-
Where to start?
I also recommend Inkscape, it also has scour built-in to it. When saving a SVG select the option "optimized SVG" which will give you options to pass to scour to lower the amount of markup there is. You can then do some hand editing after this to further remove any markup you don't want.
What are some alternatives?
vegetable - Vegetable contains a design/definition of a Vector Graphic that allows it to easily render it as equally an spaced point cloud/sequence. From this, vegetable offers a way to read .ttf font files, and render their glyphs into point clouds/sequences.
GimelStudio - Non-destructive, node based 2D image editor with an API for custom nodes
p5.js-svg - SVG runtime for p5.js.
svg.py - 🎨 Type-safe and powerful Python library to generate SVG files
vpype - The Swiss-Army-knife command-line tool for plotter vector graphics.
gerbolyze - Directly render SVG overlays into Gerber and Excellon files
vsketch - Generative plotter art environment for Python
apysc - apysc is a Python frontend library to create html and js file, that has ActionScript 3 (as3)-like interface.
LDV-plotter - This is a mathematics functions plotter. With this tool you can create beautiful plots and surprise your friends.
svg-experiments - ✒️ A gallery of experiments with Scalable Vector Graphics (SVG) and interactive visualizations.
optipng-bin - optipng bin-wrapper that makes it seamlessly available as a local dependency