Unobfuscate and document this SVG

These numbers end up beautifully on round numbers if you were to just scale them to their original size and apply these mysterious translation operations.
Also do away with all of the Inkscape and Sodipodi metadata. They don't make it any easier to read.

Contributes to issue CURA-7262.
This commit is contained in:
Ghostkeeper 2020-03-25 18:46:37 +01:00
parent 4c770587e2
commit c2651d1141
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -1,124 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<?xml version="1.0" encoding="UTF-8" ?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32">
<defs>
<g id="cross" stroke="white">
<line x1="-6" y1="-6" x2="6" y2="6" />
<line x1="6" y1="-6" x2="-6" y2="6" />
</g>
</defs>
<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:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="31.999998"
height="31.999998"
viewBox="0 0 8.4666665 8.4666665"
version="1.1"
id="svg8"
inkscape:version="0.92.3 (2405546, 2018-03-11)"
sodipodi:docname="xray_error.svg">
<defs
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="11.2"
inkscape:cx="11.132581"
inkscape:cy="24.953855"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="true"
units="px"
inkscape:window-width="1920"
inkscape:window-height="1025"
inkscape:window-x="0"
inkscape:window-y="27"
inkscape:window-maximized="1"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0">
<inkscape:grid
type="xygrid"
id="grid815"
originx="0"
originy="-3.9724863e-06" />
</sodipodi:namedview>
<metadata
id="metadata5">
<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></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="Layer 2"
transform="translate(0,-59.266663)">
<rect
style="opacity:1;fill:#ff0000;fill-opacity:1;stroke:none;stroke-width:2.11666656;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99014779"
id="rect860"
width="8.4666662"
height="8.4666662"
x="0"
y="59.266663"
ry="1.7101378e-07" />
</g>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-288.53333)">
<g
id="g1163"
transform="translate(0,0.92602876)">
<path
inkscape:transform-center-y="-0.92602646"
d="m 4.2333337,289.32709 3.6661755,6.35 -7.33235134,0 z"
inkscape:randomized="0"
inkscape:rounded="0"
inkscape:flatsided="true"
sodipodi:arg2="-0.52359878"
sodipodi:arg1="-1.5707963"
sodipodi:r2="1.8520834"
sodipodi:r1="4.233335"
sodipodi:cy="293.56042"
sodipodi:cx="4.2333336"
sodipodi:sides="3"
id="path855"
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.79374999;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99014779"
sodipodi:type="star" />
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.79374999;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 4.2333337,291.44374 v 2.11667"
id="path864"
inkscape:connector-curvature="0" />
<ellipse
ry="0.39687496"
rx="0.39687499"
cy="294.61874"
cx="4.2333331"
id="path868"
style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.79374999;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99014779" />
<rect fill="red" width="32" height="32" /> <!-- Red background. -->
<g stroke-width="3" stroke-linejoin="round" stroke-linecap="round">
<g stroke="black" fill="white">
<polygon points="16,6.5 29.856,30.5 2.144,30.5" /> <!-- Triangle. -->
<line x1="16" y1="14.5" x2="16" y2="22.5" /> <!-- Line of the ! -->
</g>
<use xlink:href="#cross" x="0" y="7.5" /> <!-- Two crosses, forming one cross split over the viewport. -->
<use xlink:href="#cross" x="32" y="7.5" />
</g>
<path
id="path1155"
style="fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.79374993;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 1.5875,289.0625 -3.1749998,3.175 m 0,-3.175 3.1749998,3.175"
inkscape:connector-curvature="0" />
<path
inkscape:connector-curvature="0"
d="m 10.054167,289.0625 -3.1750001,3.175 m 0,-3.175 3.1750001,3.175"
style="fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.79374993;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path1158" />
</g>
<circle r="1.5" cx="16" cy="26.5" /> <!-- Dot under the ! -->
</svg>

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 945 B

Before After
Before After