Skip to content

wwww-wwww/spline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svg2jxl

Installation

pip3 install git+https://github.com/wwww-wwww/spline

Usage

svg2jxl [OPTIONS] INPUT [OUTPUT]

If OUTPUT is missing, then svg2jxl prints the JXL Art URL to stdout.

Options

-h, --help                                    Show this help message and exit
-s SCALE, --scale SCALE                       Scale for working resolution
-u UPSAMPLE, --upsample UPSAMPLE              JXL tree Upsample
-e ERROR, --error ERROR                       Allowed error, multiplied by scale^2
-b BITDEPTH, --bitdepth BITDEPTH              Bitdepth for colors and JXL
-t THICKNESS, --thickness THICKNESS           Thickness for black lines
-tc THICKNESSC, --thicknessc THICKNESSC       Thickness for colored lines
-sat SATURATION, --saturation SATURATION      Saturation for black lines
-satc SATURATIONC, --saturationc SATURATIONC  Saturation for colored lines
-sh SHARPNESS, --sharpness SHARPNESS          Sharpness for thicker lines, 0 to disable
-v, --verbose                                 Print more information to stdout

Example

svg2jxl image.svg tree.txt -s 1.5 -e 1.3 -b 4 -t 0.5
jxl_from_tree tree.txt tree.jxl