mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-08 20:21:12 -06:00
* Change BG color to white * Fix flowcharts where graphics overlap with text * Increase border size * change arrow style * Allow standalone building of TikZ flowcharts Useful for reference or website etc.. * Prevent manual hyphenation in TikZ diagrams A Bit of a manual tweak.. but worth it to look nicer :D * Add missing file for flowcharts --------- Co-authored-by: Cedric <ced@awase.ostal>
16 lines
426 B
Bash
Executable File
16 lines
426 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
|
|
if [ "$#" -ne 1 ]; then
|
|
for i in *.pdf
|
|
do
|
|
target=figures/`basename $1 .png.pdf`.png
|
|
docker run -v $(pwd):/imgs dpokidov/imagemagick -density 900 -trim /imgs/$i -quality 100 /imgs/${target}
|
|
rename 's/fig-/figure-/' *.png
|
|
done
|
|
else
|
|
target=figures/`basename $1 .png.pdf`.png
|
|
echo "Converting: " $1 " to: " ${target}
|
|
convert -density 900 -trim $1 -quality 100 ${target}
|
|
fi
|