Make SVG source images square.

This commit is contained in:
Frederik “Freso” S. Olesen
2015-09-22 14:03:43 +02:00
parent 0048e591de
commit cbb6ff00ed
3 changed files with 81 additions and 48 deletions

View File

@@ -1,30 +1,61 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
<!ENTITY ns_vars "http://ns.adobe.com/Variables/1.0/">
<!ENTITY ns_imrep "http://ns.adobe.com/ImageReplacement/1.0/">
<!ENTITY ns_sfw "http://ns.adobe.com/SaveForWeb/1.0/">
<!ENTITY ns_custom "http://ns.adobe.com/GenericCustomNamespace/1.0/">
<!ENTITY ns_adobe_xpath "http://ns.adobe.com/XPath/1.0/">
]>
<svg version="1.1" id="Layer_1" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="27px" height="30px"
viewBox="0 0 27 30" enable-background="new 0 0 27 30" xml:space="preserve">
<metadata>
<sfw xmlns="&ns_sfw;">
<slices></slices>
<sliceSourceBounds height="28" width="25" y="-914" x="2963" bottomLeftOrigin="true"></sliceSourceBounds>
</sfw>
</metadata>
<g>
</g>
<g>
<g>
<polygon fill="#771B85" points="13,1 1,8 1,22 13,29 "/>
<polygon fill="#EB743B" points="14,1 26,8 26,22 14,29 "/>
</g>
</g>
</svg>
<svg
xmlns:ns="&amp;ns_sfw;"
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"
version="1.1"
id="Layer_1"
x="0px"
y="0px"
width="30"
height="30"
viewBox="0 0 30 30"
enable-background="new 0 0 27 30"
xml:space="preserve"
inkscape:version="0.91 r13725"
sodipodi:docname="Picard_logo_icon.svg"><defs
id="defs17" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="858"
inkscape:window-height="480"
id="namedview15"
showgrid="false"
inkscape:zoom="7.8666667"
inkscape:cx="23.224576"
inkscape:cy="15"
inkscape:window-x="52"
inkscape:window-y="51"
inkscape:window-maximized="0"
inkscape:current-layer="Layer_1" /><metadata
id="metadata3"><ns:sfw><ns:slices /><ns:sliceSourceBounds
height="28"
width="25"
y="-914"
x="2963"
bottomLeftOrigin="true" /></ns:sfw><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
id="g5" /><g
id="g7"
transform="translate(1.5,0)"><g
id="g9"><polygon
points="13,1 1,8 1,22 13,29 "
id="polygon11"
style="fill:#771b85" /><polygon
points="14,1 26,8 26,22 14,29 "
id="polygon13"
style="fill:#eb743b" /></g></g></svg>

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@@ -13,9 +13,9 @@
id="Layer_1"
x="0px"
y="0px"
width="127.001"
height="144"
viewBox="0 0 127.001 144"
width="150"
height="150"
viewBox="0 0 150 150"
enable-background="new 0 0 375 150"
xml:space="preserve"
inkscape:version="0.91 r13725"
@@ -32,31 +32,32 @@
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="640"
inkscape:window-width="661"
inkscape:window-height="480"
id="namedview8141"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
fit-margin-top="2"
fit-margin-left="2"
fit-margin-right="2"
fit-margin-bottom="2"
inkscape:zoom="0.96266667"
inkscape:cx="183.146"
inkscape:cy="71.823"
inkscape:cx="48.546277"
inkscape:cy="73.823"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="0"
inkscape:current-layer="g8035" /><g
id="g8033"
transform="translate(-4.354,-2.823)" /><g
transform="translate(-2.354,1.177)" /><g
id="g8035"
transform="translate(-4.354,-2.823)"><g
id="g8037"><g
transform="translate(-2.354,1.177)"><g
id="g8037"
transform="translate(9.4995,-1)"><g
id="g8039"><polygon
points="131.355,37.823 70.354,2.823 70.354,146.823 131.355,111.823 "
points="70.354,146.823 131.355,111.823 131.355,37.823 70.354,2.823 "
id="polygon8041"
style="fill:#eb743b" /><polygon
points="65.354,146.823 65.354,2.823 4.354,37.823 4.354,111.823 "
points="4.354,37.823 4.354,111.823 65.354,146.823 65.354,2.823 "
id="polygon8043"
style="fill:#771b85" /><g
id="g8045"><g

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -13,9 +13,9 @@
id="Layer_1"
x="0px"
y="0px"
width="89"
width="100"
height="100"
viewBox="0 0 89 100"
viewBox="0 0 100 100"
enable-background="new 0 0 245 100"
xml:space="preserve"
inkscape:version="0.91 r13725"
@@ -41,7 +41,7 @@
fit-margin-right="2"
fit-margin-bottom="2"
inkscape:zoom="1"
inkscape:cx="122.5"
inkscape:cx="-19.5"
inkscape:cy="50"
inkscape:window-x="0"
inkscape:window-y="0"
@@ -49,7 +49,8 @@
inkscape:current-layer="g5" /><g
id="g3" /><g
id="g5"><g
id="g7"><polygon
id="g7"
transform="translate(5.5,0)"><polygon
points="46,98 87,74 87,26 46,2 "
id="polygon9"
style="fill:#eb743b" /><polygon

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB