1
0
Fork 0

Tweak the images

pub/forgetting-dns6
LEdoian 1 year ago
parent 619bc4955a
commit 0018331cc9

@ -4,7 +4,7 @@
<svg
width="52.997375mm"
height="14.451033mm"
viewBox="0 0 52.997375 14.451033"
viewBox="-2 -2 56.997375 18.451033"
version="1.1"
id="svg1"
xml:space="preserve"

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 97 KiB

@ -4,7 +4,7 @@
<svg
width="52.997375mm"
height="31.725821mm"
viewBox="0 0 52.997375 31.725821"
viewBox="-2 -2 56.997375 35.725821"
version="1.1"
id="svg1"
xml:space="preserve"

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 97 KiB

@ -4,7 +4,7 @@
<svg
width="97.143173mm"
height="40.9856mm"
viewBox="0 0 97.143173 40.9856"
viewBox="-2 -2 101.143173 44.9856"
version="1.1"
id="svg1"
xml:space="preserve"

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 97 KiB

@ -4,7 +4,7 @@
<svg
width="113.76167mm"
height="64.238632mm"
viewBox="0 0 113.76167 64.238632"
viewBox="-2 -2 117.76167 68.238632"
version="1.1"
id="svg1"
xml:space="preserve"

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 97 KiB

@ -4,7 +4,7 @@
<svg
width="90.378784mm"
height="59.578362mm"
viewBox="0 0 90.378784 59.578362"
viewBox="-2 -2 94.378784 63.578362"
version="1.1"
id="svg1"
xml:space="preserve"

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 97 KiB

@ -1,5 +1,5 @@
image1.svg:img1:-2 -2 54.997375 16.451033
image2.svg:img2:-2 -2 54.997375 33.725821
image3.svg:img3:-2 -2 99.143173 42.9856
image4.svg:img4 D3|img3:-2 -2 115.76167 66.238632
image5.svg:img5:-2 -2 92.378784 61.578362
image1.svg:img1:-2 -2 56.997375 18.451033
image2.svg:img2:-2 -2 56.997375 35.725821
image3.svg:img3:-2 -2 101.143173 44.9856
image4.svg:img4 D3|img3:-2 -2 117.76167 68.238632
image5.svg:img5:-2 -2 94.378784 63.578362

@ -8,5 +8,5 @@ while IFS=: read fn layers viewbox; do
# Pass 2: crop images
inkscape "$fn" -D --export-overwrite
# Pass 3: add margins
sed -ri 's/^ viewBox="[^"]*"/ viewBox="'"$viewbox"'"/' "$fn"
sed -ri 's/^ viewBox="[^"]*"/ viewBox="'"$viewbox"'"/' "$fn"
done < layers.map

Loading…
Cancel
Save