add generate palette extension

pull/1796/head
Kaalleen 2022-03-31 21:20:09 +02:00
rodzic aadcf06851
commit 42b5fe095a
7 zmienionych plików z 304 dodań i 6 usunięć

Wyświetl plik

@ -94,6 +94,10 @@ key {
white-space: nowrap;
}
code::selection {
background: #4300a6;
}
/* type scale */
$type-size-1 : 1.3em;
$type-size-2 : 1.2em;

Wyświetl plik

@ -0,0 +1,144 @@
---
title: "Apple Silicon Manual Build"
permalink: /developers/inkstitch/apple-silicon-manual-build/
last_modified_at: 2022-03-31
toc: true
---
This is an instructional guide how to build Ink/Stitch locally. The manual install for developers is described in the [manual setup section](/developers/inkstitch/manual-setup/).
{: .notice--info}
## Homebrew
Ink/Stitch uses Homebrew to install the dependencies. Visit [https://brew.sh/](https://brew.sh/) and follow the instructions on the website to install. This will also install command line tools for Xcode.
Follow the final instructions of the Homebrew install, which configures Homebrew for your terminal by adding code to your `~/.zprofile`. It should look similar to this (update `foo` to your real user name):
```
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/foo/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
```
## Rosetta
Although we are not building for Intel macs, we still need Rosetta 2. To install run:
```
softwareupdate —install—rosetta
```
## Install Ink/Stitch dependencies
Now we can install Ink/Stitch build dependencies:
```
brew install python@3.9 gtk+3 pkg-config gobject-introspection geos libffi gettext wxpython npm pygobject3
```
Use your favourite text editor to add the following line to `~/.zprofile`:
```
export PATH=“$(brew --prefix)/opt/python@3.9/libexec/bin:$PATH”
```
Restart the terminal emulator.
Download Ink/Stitch and pyembroidery source from GitHub:
```
git clone https://github.com/inkstitch/inkstitch
git clone https://github.com/inkstitch/pyembroidery.git
```
Edit `requirements.txt` located in /inkstitch:
- delete the entry `./pyembrodery`
- replace `numpy<=1.17.4` with `numpy`. The specified version of numpy in requirements.txt will not build for m1 arm.
Install Ink/Stitch requirements with pip:
```
pip install git+https://github.com/gtaylor/python-colormath
pip install -r requirements.txt
pip install pyinstaller
```
Locate the pyembroidery folder created by git. To install pyembroidery run:
```
pip install -e pyembroidery/
```
## Electron
For electron we need yarn to be installed. Run:
```
npm install --global yarn
```
The `package.json` file must be prepared to build electron with M1 processors. **Remove package dependencies in package.json** in `inkstitch/electron` and run:
```
cd electron
yarn remove electron-compile
yarn remove electron-prebuilt-compile
```
Upgrade several dependency versions in package.json:
```
yarn upgrade electron@^11.2.0
yarn upgrade electron-debug@^3.0.0
yarn upgrade electron-devtools-installer@^3.2.0
```
Edit `package.json` with your favourite text editor. Find the mac section, replace `"target": "dir"` with:
```
"target": [
{
"target": "dir",
"arch": [
"arm64"
]
}
],
```
## Prepare the build scripts
Now several build scripts need to be prepared.
Add the following to the top of the `Makefile`:
```
export BUILD=osx
export VERSION=dev-m1
```
In the folder `inkstitch/bin` edit `build-distribution-archives`.
- comment out the first line by adding `#` in front of VERSION
- find line 64 and replace `cp -a electron/build/mac dist/inkstitch.app/Contents/MacOS/electron`
with:
```
cp -a electron/build/mac-arm64 dist/inkstitch.app/Contents/MacOS/electron
```
## Build Ink/Stitch
Now Ink/Stitch is ready to be built.
In the inkstitch folder run:
```
make dist
```
When successful the Ink/Stitch installer package will be located in inkstitch/artifacts.
To rebuild run:
```
make distclean && make dist
```

Wyświetl plik

@ -0,0 +1,45 @@
---
title: "Cutwork"
permalink: /de/docs/cutwork/
excerpt: ""
last_modified_at: 2022-02-17
toc: true
---
This feature will be part of an upcoming Ink/Stitch release. It is not yet integrated in Ink/Stitch v2.1.2
{: .notice--info }
Cutwork in machine embroidery describes a technique, where specific needles are used to cut holes into the fabric. These needles come mostly in a set of four. Each needle is capable to cut in a specific angle range. Therefore it is necessary to split an element into the angle sections of your needles.
## Usage
Ink/Stitch comes with a tool that will help you to split your elements according to the needle angles.
* Select one or more stroke objects
* Open `Extensions > Ink/Stitch > Cutwork segmentation`
![Cutwork segmentation window](/assets/images/docs/en/cutwork-segmentation.png)
* Set the angles and colors as you need them for your specific needle kit
* Apply
![A circle cut into pieces by cutwork segmentation](/assets/images/docs/cutwork-segmentation.png)
Sometimes it will be necessary to leave gaps in the border of the hole, so that the cutout fabric stays connected to the main piece. This will prevent that the machine pulls in small cutout pieces of fabric.
**Attention:** Do not rotate your design after applying this feature.
{: .notice--warning }
## Common needle setups
Needle|Angle|Start|End
--|--|--
<span class="cwd">&#124;</span> | 90° | 67 | 113
<span class="cwd">/</span> | 45° | 22 | 68
<span class="cwd">&#8213;</span> | 0° | 158 | 23
<span class="cwd">&#x5c;</span> | 135° | 112 | 157
Brand | #1 | #2 | #3 | #4
--|--|--|--
Bernina | <span class="cwd">&#124;</span> | <span class="cwd">/</span> | <span class="cwd">&#8213;</span> | <span class="cwd">&#x5c;</span>
Pfaff, Husqvarna Viking, Inspira | Red <span class="cwd" style="background:red;">/</span> | Yellow <span class="cwd" style="background: yellow">&#8213;</span>| Green <span class="cwd" style="background: green;">&#x5c;</span> | Blue <span class="cwd" style="background: blue">&#124;</span>
Brother, Babylock | Blue <span class="cwd" style="background: blue;">/</span> | Purple <span class="cwd" style="background: purple;">&#8213;</span>| Green <span class="cwd" style="background: green;">&#x5c;</span> | Orange <span class="cwd" style="background: #ff6000;">&#124;</span>
Janome | Red <span class="cwd" style="background: #ff3f7e;">&#8213;</span> | Blue <span class="cwd" style="background: #00abff;">/</span> | Black <span class="cwd" style="background: #413f57; color: white;">&#124;</span>| Green <span class="cwd" style="background: green;">&#x5c;</span>

Wyświetl plik

@ -2,7 +2,7 @@
title: "Thread Color Management"
permalink: /docs/thread-color/
excerpt: ""
last_modified_at: 2021-09-28
last_modified_at: 2022-03-31
toc: true
---
## Import Threadlist
@ -28,7 +28,7 @@ Threadlists can only be exported through a zip-file ([batch export](/docs/import
In case you own a `.gpl` color list of the threads you are actually using. Make it available in Inkscape with this extension: `Extensions > Ink/Stitch > Thread Color Management > Install custom palette...`. You will need to restart Inkscape after this process.
The .gpl color palettes can be generated with GIMP.
The .gpl color palettes can be generated with [Generate Color Palette](#generate-color-palette).
## Install Thread Color Palettes for Inkscape
@ -52,3 +52,22 @@ Inkscape palettes are found on the bottom to the right of the color swatches.
Click on the little arrow to open a list of installed palettes and choose the manufacturer color palette depending on the thread you are willing to use.
The choice will also take effect on the thread names to appear in the print preview.
## Generate Color Palette
This is not a part of an upcoming Ink/Stitch version and not available in Ink/Stitch v2.1.2
{: .notice--warning }
Inkscape allows to generate `.gpl` color palette files. But it doesn't allow us to order color swatches properly.
This extension will export colors of text elements while using the text as color names and numbers.
1. Import an image with the thread colors you want to use for the color palette.
2. Activate the text tool and copy & paste the color names (if you have them) or type them in.
Use one line for each color.
If the last part of a color name is a number, it will be used as the catalog number.
3. Use `Extensions > Ink/Stitch > Thread Color Management > Generate Palette > Split Text` extension to split a text block with multiple lines into separate text elements.
4. Activate the color picker tool (D) and color the text elements, while using tab to select one after the other.
5. Select the text elements and run `Extensions > Ink/Stitch > Thread Color Management > Generate Palette > Generate Color Palette ...`
6. Specify the name for your color palette and click on apply
7. Restart Inkscape to activate the new color palette

Wyświetl plik

@ -5,10 +5,6 @@ excerpt: ""
last_modified_at: 2020-10-07
toc: true
---
## Tips for Ink/Stitch
Ink/Stitch can work best with designs that are formatted as _paths_. However, many Inkscape tools (such as text and shapes) create _objects_ instead of paths. To use them with Ink/Stitch, you have to convert them by pressing `Shift + Ctrl + C` or selecting `Path > Object to Path` in the menu.
Either Inkscape 0.92 or Inkscape 1 may be used with Ink/Stitch. Most tutorials on this page are based on Inkscape 0.92.
## Inkscape Basics
These are the basics you should understand in order to use Ink/Stitch. If you have never used Inkscape before, we recommend following an Inkscape tutorial before using Ink/Stitch.

Wyświetl plik

@ -0,0 +1,45 @@
---
title: "Cutwork"
permalink: /fr/docs/cutwork/
excerpt: ""
last_modified_at: 2022-02-17
toc: true
---
This feature will be part of an upcoming Ink/Stitch release. It is not yet integrated in Ink/Stitch v2.1.2
{: .notice--info }
Cutwork in machine embroidery describes a technique, where specific needles are used to cut holes into the fabric. These needles come mostly in a set of four. Each needle is capable to cut in a specific angle range. Therefore it is necessary to split an element into the angle sections of your needles.
## Usage
Ink/Stitch comes with a tool that will help you to split your elements according to the needle angles.
* Select one or more stroke objects
* Open `Extensions > Ink/Stitch > Cutwork segmentation`
![Cutwork segmentation window](/assets/images/docs/en/cutwork-segmentation.png)
* Set the angles and colors as you need them for your specific needle kit
* Apply
![A circle cut into pieces by cutwork segmentation](/assets/images/docs/cutwork-segmentation.png)
Sometimes it will be necessary to leave gaps in the border of the hole, so that the cutout fabric stays connected to the main piece. This will prevent that the machine pulls in small cutout pieces of fabric.
**Attention:** Do not rotate your design after applying this feature.
{: .notice--warning }
## Common needle setups
Needle|Angle|Start|End
--|--|--
<span class="cwd">&#124;</span> | 90° | 67 | 113
<span class="cwd">/</span> | 45° | 22 | 68
<span class="cwd">&#8213;</span> | 0° | 158 | 23
<span class="cwd">&#x5c;</span> | 135° | 112 | 157
Brand | #1 | #2 | #3 | #4
--|--|--|--
Bernina | <span class="cwd">&#124;</span> | <span class="cwd">/</span> | <span class="cwd">&#8213;</span> | <span class="cwd">&#x5c;</span>
Pfaff, Husqvarna Viking, Inspira | Red <span class="cwd" style="background:red;">/</span> | Yellow <span class="cwd" style="background: yellow">&#8213;</span>| Green <span class="cwd" style="background: green;">&#x5c;</span> | Blue <span class="cwd" style="background: blue">&#124;</span>
Brother, Babylock | Blue <span class="cwd" style="background: blue;">/</span> | Purple <span class="cwd" style="background: purple;">&#8213;</span>| Green <span class="cwd" style="background: green;">&#x5c;</span> | Orange <span class="cwd" style="background: #ff6000;">&#124;</span>
Janome | Red <span class="cwd" style="background: #ff3f7e;">&#8213;</span> | Blue <span class="cwd" style="background: #00abff;">/</span> | Black <span class="cwd" style="background: #413f57; color: white;">&#124;</span>| Green <span class="cwd" style="background: green;">&#x5c;</span>

Wyświetl plik

@ -0,0 +1,45 @@
---
title: "Cutwork"
permalink: /ru/docs/cutwork/
excerpt: ""
last_modified_at: 2022-02-17
toc: true
---
This feature will be part of an upcoming Ink/Stitch release. It is not yet integrated in Ink/Stitch v2.1.2
{: .notice--info }
Cutwork in machine embroidery describes a technique, where specific needles are used to cut holes into the fabric. These needles come mostly in a set of four. Each needle is capable to cut in a specific angle range. Therefore it is necessary to split an element into the angle sections of your needles.
## Usage
Ink/Stitch comes with a tool that will help you to split your elements according to the needle angles.
* Select one or more stroke objects
* Open `Extensions > Ink/Stitch > Cutwork segmentation`
![Cutwork segmentation window](/assets/images/docs/en/cutwork-segmentation.png)
* Set the angles and colors as you need them for your specific needle kit
* Apply
![A circle cut into pieces by cutwork segmentation](/assets/images/docs/cutwork-segmentation.png)
Sometimes it will be necessary to leave gaps in the border of the hole, so that the cutout fabric stays connected to the main piece. This will prevent that the machine pulls in small cutout pieces of fabric.
**Attention:** Do not rotate your design after applying this feature.
{: .notice--warning }
## Common needle setups
Needle|Angle|Start|End
--|--|--
<span class="cwd">&#124;</span> | 90° | 67 | 113
<span class="cwd">/</span> | 45° | 22 | 68
<span class="cwd">&#8213;</span> | 0° | 158 | 23
<span class="cwd">&#x5c;</span> | 135° | 112 | 157
Brand | #1 | #2 | #3 | #4
--|--|--|--
Bernina | <span class="cwd">&#124;</span> | <span class="cwd">/</span> | <span class="cwd">&#8213;</span> | <span class="cwd">&#x5c;</span>
Pfaff, Husqvarna Viking, Inspira | Red <span class="cwd" style="background:red;">/</span> | Yellow <span class="cwd" style="background: yellow">&#8213;</span>| Green <span class="cwd" style="background: green;">&#x5c;</span> | Blue <span class="cwd" style="background: blue">&#124;</span>
Brother, Babylock | Blue <span class="cwd" style="background: blue;">/</span> | Purple <span class="cwd" style="background: purple;">&#8213;</span>| Green <span class="cwd" style="background: green;">&#x5c;</span> | Orange <span class="cwd" style="background: #ff6000;">&#124;</span>
Janome | Red <span class="cwd" style="background: #ff3f7e;">&#8213;</span> | Blue <span class="cwd" style="background: #00abff;">/</span> | Black <span class="cwd" style="background: #413f57; color: white;">&#124;</span>| Green <span class="cwd" style="background: green;">&#x5c;</span>