Skip to content

Conversation

@mawds
Copy link

@mawds mawds commented Jan 21, 2025

Sew files sometimes seems to have data beyond the end of the stitches (specifically when loading a file from Janome's Customizer 2000 software). The SewReader treats the end of stitch marker as another stitch and carries on reading.

The image below shows the result of write_svg() on the imported file:

Dolphin_before

(the line isn't very visible if you're using dark mode on your computer)

I think a control byte of 0x10 should be interpreted as a stop signal. This seems to fix the issue, and is consistent with the end of stitches at line 169 in the JefWriter function (as far as I can see the stitches format is more or less the same for both)

Dolphin

This PR stops the import if we get a control byte of 0x10

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.

1 participant