forked from MapComplete/MapComplete
Resize all SVG images
This commit is contained in:
parent
8435fb883f
commit
c998cc5c7f
311 changed files with 12176 additions and 31789 deletions
|
@ -7,8 +7,22 @@ resizeFile(){
|
|||
PTH="$(dirname "${1}")"
|
||||
FILE="$(basename "${1}")"
|
||||
echo "Path is $PTH, name is $FILE"
|
||||
svg-resizer -f -x 500 -y 500 -o /tmp/resized $1
|
||||
mv "/tmp/resized/$FILE" "$PTH"
|
||||
|
||||
|
||||
|
||||
if grep --quiet radialGradient $1
|
||||
then
|
||||
echo "SKIPPING $1: it has a radialGradient"
|
||||
else
|
||||
|
||||
if grep --quiet linearGradient $1
|
||||
then
|
||||
echo "WARNING for $1: it has a linearGradient"
|
||||
fi
|
||||
|
||||
svg-resizer -f -x 500 -y 500 -o /tmp/resized $1
|
||||
mv "/tmp/resized/$FILE" "$PTH"
|
||||
fi
|
||||
}
|
||||
|
||||
export -f resizeFile
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue