File indexing completed on 2024-05-05 15:53:32

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 # optimize svg files with svgo, using a custom config file to keep useful info (like author/license)
0009 # and don't apply destructive optimizations that would make the image harder to edit
0010 
0011 for f in $(find . -type f -name \*.svg)
0012 do
0013     svgo --config svgo.configGC.js -i "$f"
0014 done