Skip to content

Conversation

sporteries
Copy link

This MR addresses opening svg file with widths and heights expressed in mm instead of px.

Modifications:

  • function loadFile call readPageSize which is reponsible to update mediaSize with just loaded document
  • readPageSize open the file with QDomDocument and extracts fields width and height from svg tag
  • stringSizeToMm convert a size string to a mm float value testing if its unit is mm or pixel (in this case dividing by ppm)

@Timmmm
Copy link
Owner

Timmmm commented Aug 5, 2024

Ah I think I actually already did this in develop. Sorry I really need to merge that into master but there's an issue that I haven't debugged yet where it leaves the cutter in some kind of broken state after one cut and you need to turn it off and on again. :-/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants