File indexing completed on 2024-04-21 14:43:50

0001 #!/bin/sh
0002 #=============================================================================
0003 # SPDX-FileCopyrightText: 2021 Timothée Giet <animtim@gmail.com>
0004 #
0005 # SPDX-License-Identifier: BSD-3-Clause
0006 #=============================================================================
0007 #
0008 # Convert all svg files in a directory to plain svgz
0009 # needed to compress the output of export_layers_compris inkscape extension,
0010 # as trying to export directly svgz from it seems to break the --export-area-drawing option
0011 #
0012 # Requires inkscape version 1.0 or later
0013 
0014 for f in $(find . -type f -name \*.svg)
0015 do
0016     inkscape --export-plain-svg --export-filename=${f%.*}.svgz $f
0017 done