fixed rotation issues + updated readme
This commit is contained in:
@@ -3,9 +3,11 @@
|
||||
[](https://crates.io/crates/stitch-peek)
|
||||
[](../LICENSE)
|
||||
|
||||
A CLI tool and **Nautilus/GNOME thumbnailer** for PES embroidery files. Generates PNG previews of embroidery designs directly in your file manager.
|
||||
A CLI tool and **Nautilus/GNOME thumbnailer** for embroidery files. Generates PNG previews of embroidery designs directly in your file manager.
|
||||
|
||||
Part of the [stitch-peek-rs](https://git.narl.io/nvrl/stitch-peek-rs) project. Uses [rustitch](https://crates.io/crates/rustitch) for PES parsing and rendering.
|
||||
Supported formats: **PES**, **DST**, **EXP**, **JEF**, **VP3**
|
||||
|
||||
Part of the [stitch-peek-rs](https://git.narl.io/nvrl/stitch-peek-rs) project. Uses [rustitch](https://crates.io/crates/rustitch) for parsing and rendering.
|
||||
|
||||
## Installation
|
||||
|
||||
@@ -49,23 +51,27 @@ nautilus -q
|
||||
|
||||
### As a thumbnailer
|
||||
|
||||
Once installed with the `.thumbnailer` file in place, Nautilus automatically generates thumbnails for `.pes` files. No manual action needed.
|
||||
Once installed with the `.thumbnailer` file in place, Nautilus automatically generates thumbnails for `.pes`, `.dst`, `.exp`, `.jef`, and `.vp3` files. No manual action needed.
|
||||
|
||||
### Standalone CLI
|
||||
|
||||
```sh
|
||||
stitch-peek -i design.pes -o preview.png -s 256
|
||||
stitch-peek -i pattern.dst -o preview.png
|
||||
stitch-peek -i motif.jef -o preview.png -s 512
|
||||
```
|
||||
|
||||
| Flag | Description | Default |
|
||||
|------|-------------|---------|
|
||||
| `-i` | Input PES file | required |
|
||||
| `-i` | Input embroidery file | required |
|
||||
| `-o` | Output PNG path | required |
|
||||
| `-s` | Thumbnail size (pixels) | 128 |
|
||||
|
||||
The format is detected automatically from the file extension.
|
||||
|
||||
## How it works
|
||||
|
||||
The tool follows the [freedesktop thumbnail specification](https://specifications.freedesktop.org/thumbnail/latest/). Nautilus calls it with an input file, output path, and requested size. It parses the PES file, renders the stitch pattern as anti-aliased colored lines on a transparent background, and writes a PNG.
|
||||
The tool follows the [freedesktop thumbnail specification](https://specifications.freedesktop.org/thumbnail/latest/). Nautilus calls it with an input file, output path, and requested size. It detects the embroidery format, parses the stitch data, renders the pattern as anti-aliased colored lines on a transparent background, and writes a PNG.
|
||||
|
||||
## License
|
||||
|
||||
|
||||
Reference in New Issue
Block a user