Skip to content

mindboard/ssf2img

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ssf2img

A command line tool to convert SSF(small-sketch-format) into SVG, PDF, PNG, JPEG format.

Usage

  1. Build ssf2img.zip
    ./gradlew distZip and build/distributions/ssf2img.zip is generated.

  2. Install ssf2img command
    Unzip ssf2img.zip in somewhere you want

  3. Convert ssf to png
    cat foo.ssf | /path/to/ssf2img/bin/ssf2img > foo.png

  4. Convert ssf to png with style
    cat foo.ssf | /path/to/ssf2img/bin/ssf2img -s style.json > foo.png
    There are example style files in this project examples dir.

  5. Convert ssf to svg with style
    cat foo.ssf | /path/to/ssf2img/bin/ssf2img -f svg -s style.json > foo.svg

  6. Convert ssf to pdf with style
    cat foo.ssf | /path/to/ssf2img/bin/ssf2img -f pdf -s style.json > foo.pdf

  7. Convert ssf to jpg with style
    cat foo.ssf | /path/to/ssf2img/bin/ssf2img -f jpg -s style.json > foo.jpg

There are some example ssf files and style json files in the ./examples.

Example1

License

See the LICENSE file for license rights and limitations (MIT).

About

A command line tool for converting SSF (small sketch format) to SVG,PDF,PNG,JPEG

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors