mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-11 21:51:12 -06:00
This adds a `make export_figures` command which exports all the flow charts into nicely looking pngs. The command requires that you have docker running locally.
9 lines
205 B
Bash
Executable File
9 lines
205 B
Bash
Executable File
#!/bin/bash
|
|
for i in *.pdf
|
|
do
|
|
docker run -v $(pwd):/imgs dpokidov/imagemagick -density 900 -trim /imgs/$i -quality 100 /imgs/$i.png
|
|
rename 's/pdf.png/png/' *.png
|
|
rename 's/fig-/figure-/' *.png
|
|
done
|
|
|