EmbroidePy / pyembroidery

pyembroidery library for reading and writing a variety of embroidery formats.
MIT License
195 stars 35 forks source link

Add support for HUS and VIP conversion from PES #165

Open ali-sajjad-rizavi opened 11 months ago

tatarize commented 11 months ago

I believe I currently read HUS files, and while I did build a method of supporting ArchiveLib Level 4 compression via GreenLeaf Technologies as a written format, I don't think I fully finished the work on it outputting HUS.

def compress(data):
    size = len(data)
    return (
        bytearray([(size >> 0) & 0xFF, (size >> 8) & 0xFF, 0x02, 0xA0, 0x01, 0xFE])
        + data
    )

Is my compression routine, the result of about a year of work on and off. As for VIP format, I don't think I even parse it.