convert Designaknit .stp and .pat knitting pattern files into images
Project description
DAK2im
This is a small Python3 module to convert Designaknit .stp and .pat knitting pattern files into images. The code for .stp files was originally written in Java by Guntram Blohm in response to a stackexchange question (https://reverseengineering.stackexchange.com/questions/12235/reading-stp-designaknit-stitch-pattern-files-ii/12239#12239).
As .stp files are somewhat encrypted, it's not easily possible to read or convert them to anything else. The original intention of this software was to show how to read and decrypt those files. The older .pat file format is similar but without any encryption.
The program reads two kinds of data from the files:
- color pattern
- color palette
Two further types of information are ignored, for the current purposes:
- stitch pattern
- stitch types
The two public methods are pat2im() and stp2im(). They take as their argument a filename and return a PIL.Image object.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file DAKimport-0.0.3.tar.gz
.
File metadata
- Download URL: DAKimport-0.0.3.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f22e4bfcbaed8ca54dc1338d8da55162cac114dfd6c369062642d0447418b005 |
|
MD5 | 9496f26d6272092d709f8f0562791721 |
|
BLAKE2b-256 | 8abc357ce4815b3aaa12eb1260ce6a6b661b6cb968a4cc903780c134945e175b |
File details
Details for the file DAKimport-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: DAKimport-0.0.3-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15eae6b7cc8a170bd40a25728b385439356eeec7aa5d236487f130590770812c |
|
MD5 | 4dce5bfb04e90b73fcbdcc8c2fbbf6b4 |
|
BLAKE2b-256 | 1932b1cea9e1b9b1c25c3051d8ebc5a3675ca6f3b6726931740738e389bbb4f6 |