-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
feature requestNew feature or requestNew feature or requestsvgAnything about the file format for people who like to have fun.Anything about the file format for people who like to have fun.
Description
Description
Hi, I recently ran scour to reduce size of these typst outputs (to save space in typst/packages). The following are ideas for reducing size of SVG outputs:
- Use unique minimal ids
- Typst 0.13.1 produces symbols with ids like
id="gAE8F30B35D6A8EB54F09046949FB529D"and scour replaces it withid="n"and so on - This saved 8% file size on the two text filled tables
- Unclear if viable for Typst
- Typst 0.13.1 produces symbols with ids like
- Use less indentation
- Typst 0.13.1 produces 4-space indentation, consider 0-space, 1-space or no whitespace at all
- Going from 4-space to no whitespace saves 5-10% on the tested files.
- Use less coordinate precision
- This is a lossy thing that scour does. It's probably not a good fit for Typst (?)
Use Case
It would save some space and bandwidth
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature requestNew feature or requestNew feature or requestsvgAnything about the file format for people who like to have fun.Anything about the file format for people who like to have fun.