Add inkscape directory
This commit is contained in:
18
figs/inkscape/convert_svg.sh
Executable file
18
figs/inkscape/convert_svg.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Directory containing SVG files
|
||||
INPUT_DIR="."
|
||||
|
||||
# Loop through all SVG files in the directory
|
||||
for svg_file in "$INPUT_DIR"/*.svg; do
|
||||
# Check if there are SVG files in the directory
|
||||
if [ -f "$svg_file" ]; then
|
||||
# Output PDF file name
|
||||
pdf_file="../${svg_file%.svg}.pdf"
|
||||
png_file="../${svg_file%.svg}"
|
||||
|
||||
# Convert SVG to PDF using Inkscape
|
||||
inkscape "$svg_file" --export-filename="$pdf_file" && \
|
||||
pdftocairo -png -singlefile -cropbox "$pdf_file" "$png_file"
|
||||
fi
|
||||
done
|
1075
figs/inkscape/test_apa_2dof_model.svg
Normal file
1075
figs/inkscape/test_apa_2dof_model.svg
Normal file
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 75 KiB |
1128
figs/inkscape/test_apa_2dof_model_simscape.svg
Normal file
1128
figs/inkscape/test_apa_2dof_model_simscape.svg
Normal file
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 80 KiB |
280
figs/inkscape/test_apa_flatness_setup.svg
Normal file
280
figs/inkscape/test_apa_flatness_setup.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 264 KiB |
3819
figs/inkscape/test_apa_iff_schematic.svg
Normal file
3819
figs/inkscape/test_apa_iff_schematic.svg
Normal file
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 254 KiB |
3822
figs/inkscape/test_apa_schematic.svg
Normal file
3822
figs/inkscape/test_apa_schematic.svg
Normal file
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 254 KiB |
3818
figs/inkscape/test_apa_super_element_simscape.svg
Normal file
3818
figs/inkscape/test_apa_super_element_simscape.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 2.5 MiB |
Reference in New Issue
Block a user