Jump to content

Search the Community

Showing results for tags 'dimensions positions'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Affinity Support
    • News and Information
    • Affinity Support & Questions
    • Feature Requests & Suggestions
  • Learn and Share
    • Tutorials (Serif and Customer Created Tutorials)
    • Share your work
    • Resources
  • Bug Reporting
    • Report a Bug in Affinity Designer
    • Report a Bug in Affinity Photo
    • Report a Bug in Affinity Publisher
    • (Pre 1.7) Affinity Range Bugs Forums
  • Beta Software Forums
    • Affinity Designer Beta Forums
    • Affinity Photo Beta Forums
    • Affinity Publisher Beta Forums

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. Robert Cailliau

    Saving as SVG

    I use Designer exclusively for technical drawings, some of which I want to publish on the web as SVG. Here is a screenshot of a Designer drawing (it is an outline of some Lego construction): The document unit is pixels, the grid is set to whole pixel numbers and all elements are snapped to the grid and have whole pixel numbers for dimensions; they are all stroked with 1 pixel black. I expect the SVG elements to be specified in whole numbers and positioned at whole numbers in the viewbox. However… When exporting "for export" I get this in Safari: When exportine "for web" I get this: When exporting "for print" I get the same. However, the svg code is very different. For web I get: <?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="100%" height="100%" viewBox="0 0 842 596" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;"> <g id="s-2x3" serif:id="s 2x3"> <path id="profile" d="M86.4,46.081l-15.601,0l0,4.561c1.457,1.095 2.4,2.838 2.4,4.8c0,3.311 -2.689,6 -6,6c-3.312,0 -6.001,-2.689 -6.001,-6c0,-1.962 0.943,-3.705 2.4,-4.8l0,-4.561l-15.6,0l-9.601,-7.68l57.603,0l-9.6,7.68Z" style="fill:#fff;stroke:#000;stroke-width:0.24px;"/> <circle id="r" cx="67.199" cy="55.442" r="3.84" style="fill:#fff;stroke:#000;stroke-width:0.24px;"/> <rect id="p-2x3" serif:id="p 2x3" x="38.397" y="30.72" width="57.603" height="7.68" style="fill:#fff;stroke:#000;stroke-width:0.24px;"/> </g> <rect id="p-10x2" serif:id="p 10x2" x="57.601" y="23.04" width="192.009" height="7.68" style="fill:#fff;stroke:#000;stroke-width:0.24px;"/> <rect id="p-1x2" serif:id="p 1x2" x="38.4" y="23.04" width="19.201" height="7.68" style="fill:#fff;stroke:#000;stroke-width:0.24px;"/> <g id="hand-1x2" serif:id="hand 1x2"> <rect id="p-1x21" serif:id="p 1x2" x="249.61" y="23.018" width="19.202" height="7.68" style="fill:#989595;stroke:#000;stroke-width:0.24px;"/> <path d="M281.047,30.111c-0.796,0.39 -1.69,0.609 -2.636,0.609c-2.558,0 -4.745,-1.605 -5.607,-3.862l-3.992,0l0,-3.84l3.844,0c0.735,-2.483 3.035,-4.298 5.755,-4.298c0.985,0 1.915,0.238 2.735,0.659l-0.987,1.921c-0.524,-0.268 -1.118,-0.42 -1.747,-0.42c-2.119,0 -3.84,1.721 -3.84,3.84c0,2.119 1.721,3.84 3.84,3.84c0.606,0 1.18,-0.141 1.689,-0.391l0.946,1.942Z" style="fill:#989595;stroke:#000;stroke-width:0.24px;"/> </g> </svg> which is manifestly wrong, for "export" I get: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="100%" height="100%" viewBox="0 0 3508 2481" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;"> <g id="s-2x3" serif:id="s 2x3" transform="matrix(4.0002,0,0,4.0002,-3360.18,-1272.07)"> <path id="profile" d="M930,366L913.75,366L913.75,370.751C915.268,371.892 916.25,373.707 916.25,375.75C916.25,379.199 913.449,382 910,382C906.551,382 903.75,379.199 903.75,375.75C903.75,373.707 904.732,371.892 906.25,370.751L906.25,366L890,366L880,358L940,358L930,366Z" style="fill:white;stroke:black;stroke-width:0.25px;"/> <g id="r" transform="matrix(1.66866,0,0,1.33333,-512.36,-81.5833)"> <ellipse cx="852.397" cy="343" rx="2.397" ry="3" style="fill:white;stroke:black;stroke-width:0.17px;"/> </g> <g id="p-2x3" serif:id="p 2x3" transform="matrix(1,0,0,0.950075,-1.13687e-13,17.4736)"> <rect x="880" y="350" width="60" height="8.42" style="fill:white;stroke:black;stroke-width:0.26px;"/> </g> </g> <g id="p-10x2" serif:id="p 10x2" transform="matrix(32.182,0,0,2.56013,-27923.8,-757.14)"> <rect x="875.14" y="333.242" width="24.86" height="12.5" style="fill:white;stroke:black;stroke-width:0.04px;"/> </g> <g id="p-1x2" serif:id="p 1x2" transform="matrix(3.1802,0,0,2.66269,-2304.16,-844.484)"> <rect x="774.843" y="353.208" width="25.157" height="12.019" style="fill:white;stroke:black;stroke-width:0.34px;"/> </g> <g id="hand-1x2" serif:id="hand 1x2" transform="matrix(1,0,0,1,-2569.94,64.0778)"> <g id="p-1x21" serif:id="p 1x2" transform="matrix(-2.0002,1.11619e-16,2.22055e-16,4.02132,6450.26,-2670.66)"> <rect x="1380" y="672.042" width="40" height="7.958" style="fill:rgb(152,149,149);stroke:black;stroke-width:0.31px;"/> </g> <g transform="matrix(1,0,0,1,2649.99,-1164.08)"> <path d="M1090.98,1225.46C1087.66,1227.09 1083.93,1228 1080,1228C1069.34,1228 1060.22,1221.31 1056.63,1211.91L1040,1211.91L1040,1195.91L1056.02,1195.91C1059.08,1185.56 1068.66,1178 1080,1178C1084.1,1178 1087.97,1178.99 1091.39,1180.75L1087.28,1188.75C1085.09,1187.63 1082.62,1187 1080,1187C1071.17,1187 1064,1194.17 1064,1203C1064,1211.83 1071.17,1219 1080,1219C1082.53,1219 1084.91,1218.41 1087.04,1217.37L1090.98,1225.46Z" style="fill:rgb(152,149,149);stroke:black;stroke-width:1px;"/> </g> </g> </svg> which has greatly different stroke widths! And finally for "print" I get: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="100%" height="100%" viewBox="0 0 3508 2481" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;"> <g id="s-2x3" serif:id="s 2x3"> <path id="profile" d="M359.998,192.005l-65.003,0l0,19.005c6.071,4.563 10,11.824 10,19.997c0,13.798 -11.202,25.001 -25.001,25.001c-13.798,0 -25.001,-11.203 -25.001,-25.001c0,-8.173 3.929,-15.434 10,-19.997l0,-19.005l-65.003,0l-40.002,-32.002l240.012,0l-40.002,32.002Z" style="fill:#fff;stroke:#000;stroke-width:1px;"/> <circle id="r" cx="279.994" cy="231.007" r="16.001" style="fill:#fff;stroke:#000;stroke-width:1px;"/> <rect id="p-2x3" serif:id="p 2x3" x="159.988" y="128.002" width="240.012" height="32.002" style="fill:#fff;stroke:#000;stroke-width:1px;"/> </g> <rect id="p-10x2" serif:id="p 10x2" x="240.004" y="96" width="800.039" height="32.002" style="fill:#fff;stroke:#000;stroke-width:1px;"/> <rect id="p-1x2" serif:id="p 1x2" x="160" y="96" width="80.004" height="32.002" style="fill:#fff;stroke:#000;stroke-width:1px;"/> <g id="hand-1x2" serif:id="hand 1x2"> <rect id="p-1x21" serif:id="p 1x2" x="1040.04" y="95.91" width="80.008" height="32" style="fill:#989595;stroke:#000;stroke-width:1px;"/> <path d="M1171.03,125.462c-3.316,1.625 -7.043,2.538 -10.981,2.538c-10.66,0 -19.771,-6.686 -23.363,-16.09l-16.633,0l0,-16l16.018,0c3.059,-10.349 12.643,-17.91 23.978,-17.91c4.104,0 7.978,0.991 11.396,2.746l-4.114,8.004c-2.184,-1.119 -4.658,-1.75 -7.278,-1.75c-8.831,0 -16,7.169 -16,16c0,8.831 7.169,16 16,16c2.525,0 4.914,-0.586 7.038,-1.63l3.939,8.092Z" style="fill:#989595;stroke:#000;stroke-width:1px;"/> </g> </svg> which has the stroke widths right, but not the positions nor the dimensions: those should all be whole numbers! What am I missing?
×

Important Information

Please note the Annual Company Closure section in the Terms of Use. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.