Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 774 Bytes

README.md

File metadata and controls

22 lines (19 loc) · 774 Bytes

frig

Figure cReation Is God-awful (on Windows).

Installation

pip install git+https://github.com/nikwl/frig.git

Use

(1) Automatically remove whitespace from all images in a directory. New images are dumped into a stripped subdirectory.

python -m frig.strip dir/to/strip

(2) Convert all vectorized images in a directory to pdf. Designed for use on windows but should work on any OS. New pdfs are dumped into the same directory as the input vectorized images.

python -m frig.pdfize dir/to/pdfize

Requires inkscape to be installed. If inkscape is installed in non-standard location use the INKSCAPE_PATH environment variable to point to it.

$env:INKSCAPE_PATH = 'C:\\Program Files\\Inkscape\\bin\\inkscape.exe'