正確呈現下面是SVG粘貼在這裏SVG不是在CentOS 6的使用Inkscape的
<svg width="220" height="330" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 220 330">
<g transform="translate(96,0)">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="193" height="370" preserveAspectRatio="none" x="12.4844" y="-42.5" viewBox="0 0 15 27">
<g transform="translate(0, 0) scale(1,1)">
<text text-anchor="middle" uuid="a1f8607b-7dd2-4cd0-89b0-c09610e1702f" stroke-linecap="round" stroke-linejoin="round" y="15" stroke="rgb(255,0,0)" stroke-width="0" fill="rgb(0,0,0)" ng-if="text.type=='text'" ng-style="{'font-family':text.font,'letter-spacing':text.space.value/2,'text-shadow':'4px 4px' + text.shadowColor}" font-size="24px" style="font-family: Arial; letter-spacing: 0px;" class="">
<tspan x="50%" class="text_tspans" y="0" dy="22"> A </tspan>
</text>
</g>
</svg>
</g>
<g transform="translate(18,0)">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="36" height="66" preserveAspectRatio="none" x="89" y="190" viewBox="0 0 16 27">
<g transform="translate(0, 0) scale(1,1)">
<text text-anchor="middle" uuid="bf336f6e-1187-485d-8e4d-2e81cbe649bf" stroke-linecap="round" stroke-linejoin="round" y="15" stroke="rgb(255,0,0)" stroke-width="0" fill="rgb(0,0,0)" ng-if="text.type=='text'" ng-style="{'font-family':text.font,'letter-spacing':text.space.value/2,'text-shadow':'4px 4px' + text.shadowColor}" font-size="24px" style="font-family: Arial; letter-spacing: 0px;" class="">
<tspan x="50%" class="text_tspans" y="0" dy="22"> B </tspan>
</text>
</g>
</svg>
</g>
<g transform="translate(15.5,0)">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="31" height="53" preserveAspectRatio="none" x="92.5" y="-11" viewBox="0 0 17 27">
<g transform="translate(0, 0) scale(1,1)">
<text text-anchor="middle" uuid="1be15796-ee94-468b-8c5a-0034d08071fd" stroke-linecap="round" stroke-linejoin="round" y="15" stroke="rgb(255,0,0)" stroke-width="0" fill="rgb(0,0,0)" ng-if="text.type=='text'" ng-style="{'font-family':text.font,'letter-spacing':text.space.value/2,'text-shadow':'4px 4px' + text.shadowColor}" font-size="24px" style="font-family: Arial; letter-spacing: 0px;" class="">
<tspan x="50%" class="text_tspans" y="0" dy="22"> C </tspan>
</text>
</g>
</svg>
</g>
<g transform="translate(19.5,0)">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="39" height="66" preserveAspectRatio="none" x="171" y="97" viewBox="0 0 17 27">
<g transform="translate(0, 0) scale(1,1)">
<text text-anchor="middle" uuid="9313b2c9-3329-4f94-8d77-08501ac2b46d" stroke-linecap="round" stroke-linejoin="round" y="15" stroke="rgb(255,0,0)" stroke-width="0" fill="rgb(0,0,0)" ng-if="text.type=='text'" ng-style="{'font-family':text.font,'letter-spacing':text.space.value/2,'text-shadow':'4px 4px' + text.shadowColor}" font-size="24px" style="font-family: Arial; letter-spacing: 0px;" class="">
<tspan x="50%" class="text_tspans" y="0" dy="22"> D </tspan>
</text>
</g>
</svg>
</g>
<g transform="translate(15,0)">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="30" height="55" preserveAspectRatio="none" x="2" y="108" viewBox="0 0 16 27">
<g transform="translate(0, 0) scale(1,1)">
<text text-anchor="middle" uuid="9692a0ca-4e96-4e9e-8c34-b13e7a1357de" stroke-linecap="round" stroke-linejoin="round" y="15" stroke="rgb(255,0,0)" stroke-width="0" fill="rgb(0,0,0)" ng-if="text.type=='text'" ng-style="{'font-family':text.font,'letter-spacing':text.space.value/2,'text-shadow':'4px 4px' + text.shadowColor}" font-size="24px" style="font-family: Arial; letter-spacing: 0px;" class="">
<tspan x="50%" class="text_tspans" y="0" dy="22"> E </tspan>
</text>
</g>
</svg>
</g>
<g transform="rotate(0,107.48,134.5) translate(23.5,0)">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="47.04" height="56" preserveAspectRatio="none" x="83.98" y="106.5" viewBox="0 0 23 27">
<g transform="translate(0, 0) scale(1,1)">
<text text-anchor="middle" uuid="4345edda-f9ae-4eaa-8498-fca84506e89b" stroke-linecap="round" stroke-linejoin="round" y="15" stroke="rgb(255,0,0)" stroke-width="0" fill="rgb(0,0,0)" ng-if="text.type=='text'" ng-style="{'font-family':text.font,'letter-spacing':text.space.value/2,'text-shadow':'4px 4px' + text.shadowColor}" font-size="24px" style="font-family: Arial; letter-spacing: 0px;" class="">
<tspan x="50%" textLength="0" dlengthAdjust="spacingAndGlyphs" y="0" dy="22" class="text_tspans">/-\</tspan>
</text>
</g>
</svg>
</g>
</svg>
SVG代碼將在正常工作Inkscape的,而不是任何瀏覽器。
現在的問題是,當我們使用Inkscape的最新版本 「0.91 r13725(2016年11月5日)」 使用命令Inkscape的-z -e 1.png -w 480 -h 570 1轉換上CentOS7圖像.SVG我們獲得下面的圖片
但正如上面,當我們使用Inkscape的版本0.47 r22583(2015年7月29日)使用相同的命令將其轉換上CentOS6
任何人都可以請告訴問題是什麼?已經嘗試過所有的替代方案,每一項工作都要解決它。但目前尚無法做到。
親切的問候
我已經知道這是問題所在。但是我怎麼能克服這個問題呢? SVG代碼中沒有可以改變的東西來獲得標準化輸出嗎?它應該顯示相同的結果,不管版本是否不同。 –
「嘗試在兩臺機器上使用完全相同的軟件版本,這可能需要您安裝自己想要的版本。」 – Danack
沒有這不是一個在本地安裝版本的選項,我們需要降級到CentOS6,正如我之前提到的。 –