Closed hiss-tone closed 1 year ago
Looks like CAM application is not correctly converting the version value and comparison fails. 90dpi results to correct image.
Super, thanks a lot!
Looks like this issue is back again. Suddenly the scaling went wrong and it has not been an issue after the above change :(
Looks like this issue is back again. Suddenly the scaling went wrong and it has not been an issue after the above change :(
Post a sample file and workspace export please (:
Hmm, need to investigate a bit more. With a new test file it renders correctly but the older (saved with new version of Inkscape) is scaled wrongly... I'll get back.
but the older (saved with new version of Inkscape)
Possibly old version has different default DPI than new version. SVGs and DPIs are forever painful, even within the Inkscape ecosystem. The change in DPI (and originally the nonstandard default) will haunt them for a while
Hi, related issue has been discussed here a few times but seems that OpenBuild-CAM is parsing the SVG document in wrong DPI. For some reason values are parsed (or compared?) incorrectly. In 1.0.2 it works fine but not with version 1.1.2. If I just edit the header inside the file and set the version to 1.0.2 then it scales correctly.
In version 1.1.2 I have this line: inkscape:version="1.1.2 (b8e25be833, 2022-02-05)" and in 1.0.2 like this: inkscape:version="1.0.2-2 (e86c870879, 2021-01-15)"
If I manually edit the 1.1.2 header to this: inkscape:version="1.0.2 (b8e25be833, 2022-02-05)" it works fine!
Something probably goes wrong around these lines of code: https://github.com/OpenBuilds/OpenBuilds-CAM/blob/f86c7cc39a340962fb9adc8e7ba1c7e2dd6639cd/js/svgparser.js#L58 https://github.com/OpenBuilds/OpenBuilds-CAM/blob/f86c7cc39a340962fb9adc8e7ba1c7e2dd6639cd/js/svgparser.js#L66 and it gets the wrong resolution...