forked from MapComplete/MapComplete
Add script to automatically rescale SVG images - important to export them to PNGs
This commit is contained in:
parent
7090a5ceb8
commit
d4f5e1d238
8 changed files with 261 additions and 90 deletions
|
@ -1,25 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
version="1.1"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 16 16"
|
||||
id="svg2">
|
||||
<metadata id="metadata8">
|
||||
<rdf:RDF>
|
||||
<cc:Work rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
|
||||
<dc:title/>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs id="defs6"/>
|
||||
<rect width="16" height="16" x="0" y="0" id="canvas" style="fill:none;stroke:none;visibility:hidden"/>
|
||||
<path d="M 1,1 1,7 C 1,9 3,10 5.5,10 8,10 10,9 10,7 l 2,0 c 1,0 2,-1 2,-2 L 14,4 C 14,3 13,2 12,2 l -2,0 0,-1 z m 9,2.25 1.75,0 c 0.667788,0 1,0.5628359 1,1.25 0,0.6871641 -0.388201,1.25 -1,1.25 L 10,5.75 z M 0,11 c 0,1 1,2 2,2 l 7,0 c 1,0 2,-1 2,-2 z"
|
||||
id="cafe" style="fill:#C77400;fill-opacity:1;stroke:none" transform="translate(1,1)"/>
|
||||
</svg>
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="375px" height="375px" viewBox="0 0 375 375" version="1.1">
|
||||
<g id="surface1">
|
||||
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(78.039217%,45.490196%,0%);fill-opacity:1;" d="M 46.875 46.875 L 46.875 187.5 C 46.875 234.375 93.75 257.8125 152.34375 257.8125 C 210.9375 257.8125 257.8125 234.375 257.8125 187.5 L 304.6875 187.5 C 328.125 187.5 351.5625 164.0625 351.5625 140.625 L 351.5625 117.1875 C 351.5625 93.75 328.125 70.3125 304.6875 70.3125 L 257.8125 70.3125 L 257.8125 46.875 Z M 257.8125 99.609375 L 298.828125 99.609375 C 314.480469 99.609375 322.265625 112.800781 322.265625 128.90625 C 322.265625 145.011719 313.167969 158.203125 298.828125 158.203125 L 257.8125 158.203125 Z M 23.4375 281.25 C 23.4375 304.6875 46.875 328.125 70.3125 328.125 L 234.375 328.125 C 257.8125 328.125 281.25 304.6875 281.25 281.25 Z M 23.4375 281.25 "/>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1,011 B |
|
@ -1,26 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
version="1.1"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 16 16"
|
||||
id="svg2">
|
||||
<metadata id="metadata8">
|
||||
<rdf:RDF>
|
||||
<cc:Work rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
|
||||
<dc:title/>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs id="defs6"/>
|
||||
<rect width="16" height="16" x="0" y="0" id="canvas" style="fill:none;stroke:none;visibility:hidden"/>
|
||||
<path d="m 2,1 2,12 6,0 2,-12 z m 1.25,1 7.5,0 -0.33,2 -6.86,0 z"
|
||||
id="pub"
|
||||
style="fill:#C77400;fill-opacity:1;stroke:none" transform="translate(1,1)"/>
|
||||
</svg>
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="375px" height="375px" viewBox="0 0 375 375" version="1.1">
|
||||
<g id="surface1">
|
||||
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(78.039217%,45.490196%,0%);fill-opacity:1;" d="M 70.3125 46.875 L 117.1875 328.125 L 257.8125 328.125 L 304.6875 46.875 Z M 99.609375 70.3125 L 275.390625 70.3125 L 267.65625 117.1875 L 106.875 117.1875 Z M 99.609375 70.3125 "/>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 993 B After Width: | Height: | Size: 523 B |
Loading…
Add table
Add a link
Reference in a new issue