Stroke width isnt changed
Opened this issue · 2 comments
I have the following file (didnt know how to link it but figured its small enough for code)
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
class="card"
face="JD"
height="3.5in"
preserveAspectRatio="none"
viewBox="-120 -168 240 336"
width="2.5in"
version="1.1"
id="svg89"
sodipodi:docname="testFile.svg"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview91"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#505050"
inkscape:document-units="in"
showgrid="false"
inkscape:zoom="4.3226109"
inkscape:cx="80.391228"
inkscape:cy="96.238132"
inkscape:window-width="2560"
inkscape:window-height="1377"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs45" />
<g
inkscape:groupmode="layer"
id="layer1"
inkscape:label="Layer 1">
<path
stroke="#4444ff"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="3"
fill="none"
d="m 85,590 c -4.700789,8.72507 -5.186787,17.0989 0,25 m 3.710078,6.88418 c -4.700789,8.72507 -5.186787,17.0989 0,25 m 0,10 c -4.700789,8.72507 -5.186787,17.0989 0,25 m 0,5 c -4.700789,8.72507 -5.186787,17.0989 0,25 M 130,510 c 0,25 10,30 10,30 m -89.072313,57.4996 c -1.13052,2.57966 -1.33893,5.77405 0,10 m 0,23.02404 c -1.13052,2.57966 -1.33893,5.77405 0,10 m 0,24.47596 c -1.13052,2.57966 -1.33893,5.77405 0,10 m 0,25.0004 c -1.13052,2.57966 -1.33893,5.77405 0,10 m 0,-13.84068 c -1.13052,2.57966 -1.33893,5.77405 0,10 M 725,500 c 25,-10 40,-10 50,-5 M 705,255 c -30,-20 -60.95115,-7.27972 -90,15 m 170,5 c 24.49605,-30.28885 50.8757,-35.96138 70,-25 m -162.45974,8.60402 c 5.79878,4.0092 9.63542,10.97454 9.63542,18.89598 0,12.42641 -9.44135,22.5 -21.08785,22.5 -11.6465,0 -21.08785,-10.07359 -21.08785,-22.5 0,-3.28538 0.65995,-6.40629 1.84613,-9.22005 m 191.2777,-6.54105 c 6.97583,3.39911 11.87622,11.41458 11.87622,20.7611 0,12.42641 -8.66208,22.5 -19.34729,22.5 -10.68521,0 -19.34729,-10.07359 -19.34729,-22.5 0,-3.81643 0.81704,-7.41094 2.25881,-10.55985 M 835,317.32348 c 11.29232,3.96884 26.09989,-0.36152 27.06897,-2.32348 M 517.96925,509.82169 C 557.53794,533.35836 604.4889,555.09153 650,555 M 525.36882,498.26604 C 565.47164,522.39165 613.48777,545.09355 660,545"
id="path389"
style="display:inline"
inkscape:label="Untransformed"
transform="matrix(0.12676923,0,0,0.13039999,-82.400002,-130.39999)" />
<path
stroke="#4444ff"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="3"
fill="none"
d="M -71.6246 -53.464 C -72.2205 -52.3263 -72.2822 -51.2343 -71.6246 -50.204 M -71.1543 -49.3063 C -71.7502 -48.1686 -71.8118 -47.0766 -71.1543 -46.0463 M -71.1543 -44.7423 C -71.7502 -43.6046 -71.8118 -42.5126 -71.1543 -41.4823 M -71.1543 -40.8303 C -71.7502 -39.6926 -71.8118 -38.6006 -71.1543 -37.5703 M -65.92 -63.896 C -65.92 -60.636 -64.6523 -59.984 -64.6523 -59.984 M -75.9439 -52.4861 C -76.0873 -52.1497 -76.1137 -51.7331 -75.9439 -51.1821 M -75.9439 -48.1797 C -76.0873 -47.8433 -76.1137 -47.4268 -75.9439 -46.8757 M -75.9439 -43.6841 C -76.0873 -43.3477 -76.1137 -42.9311 -75.9439 -42.3801 M -75.9439 -39.12 C -76.0873 -38.7836 -76.1137 -38.3671 -75.9439 -37.816 M -75.9439 -39.6208 C -76.0873 -39.2844 -76.1137 -38.8679 -75.9439 -38.3168 M 9.50752 -65.2 C 12.6767 -66.504 14.5783 -66.504 15.846 -65.852 M 6.97214 -97.148 C 3.16907 -99.756 -0.754571 -98.0973 -4.43707 -95.192 M 17.1137 -94.54 C 20.219 -98.4897 23.5631 -99.2294 25.9875 -97.8 M 5.39264 -96.678 C 6.12774 -96.1552 6.61411 -95.247 6.61411 -94.214 C 6.61411 -92.5936 5.41724 -91.28 3.94082 -91.28 C 2.46441 -91.28 1.26754 -92.5936 1.26754 -94.214 C 1.26754 -94.6424 1.3512 -95.0494 1.50157 -95.4163 M 25.7497 -96.2692 C 26.634 -95.826 27.2552 -94.7808 27.2552 -93.562 C 27.2552 -91.9416 26.1571 -90.628 24.8026 -90.628 C 23.448 -90.628 22.3499 -91.9416 22.3499 -93.562 C 22.3499 -94.0597 22.4535 -94.5284 22.6363 -94.939 M 23.4521 -89.021 C 24.8836 -88.5035 26.7608 -89.0682 26.8836 -89.324 M -16.7376 -63.9193 C -11.7215 -60.8501 -5.76955 -58.0161 -0.00015 -58.028 M -15.7995 -65.4261 C -10.7157 -62.2801 -4.62877 -59.3198 1.26754 -59.332"
id="path780"
style="display:inline"
inkscape:label="Transformed" />
</g>
</svg>
I have 1 untransformed path and one that is transformed but because the stroke width doesnt change, the lines are noticeably thicker. Wondering if this is by design, or i am doing something wrong with the plugin or if this is actually an issue.
I also wanted to ask if it is also by design that any labels on the path get removed after a transform, it is slightly annoying when i have labelled everything then go to transform and all the labels are replaced with auto generated names.
https://github.com/KlutzyBubbles/inkscape-applytransforms
I have a change in my own fork that solves this issue for what i need it for but not sure if this breaks anything else.
this commit seems to work well. i know the issue in case attributes for styling are not inside the style attrib, but in oldschool fashioned way