@koda-sl/baker-cli 0.192.4 → 0.193.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/dist/{chunk-ISZWNERZ.js → chunk-O5GXFPWC.js} +190 -159
- package/dist/chunk-O5GXFPWC.js.map +1 -0
- package/dist/cli.js +430 -207
- package/dist/cli.js.map +1 -1
- package/dist/engine/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-ISZWNERZ.js.map +0 -1
package/README.md
CHANGED
|
@@ -1773,6 +1773,8 @@ Each external source is its own subcommand. Pick the verb that matches the sourc
|
|
|
1773
1773
|
| `baker images delete <id>` | Delete a record | n/a |
|
|
1774
1774
|
| `baker images normalize <files>` | Local recolor + bg removal + trim + resize | n/a (operates on disk, no upload) |
|
|
1775
1775
|
| `baker images upscale <imageId>` | Real-ESRGAN super-resolution via backend ($0.05/image, cost-tracked) | n/a (operates on library image) |
|
|
1776
|
+
| `baker images layerize <imageId>` | Split into editable layers — transparent cutouts per element plus baked-in copy recovered as editable text (costs credits) | n/a (operates on library image) |
|
|
1777
|
+
| `baker images layers <imageId>` | Read the layers of an already-split image (free) | n/a (operates on library image) |
|
|
1776
1778
|
| `baker images crop <file>` | Coordinate-based rectangular extract — local file or URL | n/a |
|
|
1777
1779
|
| `baker images dimensions <file\|url>` | Read width / height / aspect / format without decoding | n/a |
|
|
1778
1780
|
| `baker images tags` | List available image tag names (defaults + company custom tags) | n/a |
|
|
@@ -2251,6 +2253,23 @@ Validation errors return `VALIDATION_ERROR`:
|
|
|
2251
2253
|
- Malformed `--color` (must be `#RGB` or `#RRGGBB`)
|
|
2252
2254
|
- Empty file pattern or no matches
|
|
2253
2255
|
|
|
2256
|
+
### `baker images layerize <imageId>`
|
|
2257
|
+
|
|
2258
|
+
Splits a library image into editable layers and waits for completion (~90s). Returns a transparent PNG per element — each at a permanent URL usable as a canvas input — plus any headline that was drawn into the picture, recovered as real copy with its font, size, weight and colour.
|
|
2259
|
+
|
|
2260
|
+
```bash
|
|
2261
|
+
baker images layerize j571abc123def
|
|
2262
|
+
baker images layerize j571abc123def --full # geometry + typography
|
|
2263
|
+
baker images layerize j571abc123def --instructions "keep the bottle and its shadow together"
|
|
2264
|
+
baker images layerize j571abc123def --max-wait 0 # fire-and-forget
|
|
2265
|
+
```
|
|
2266
|
+
|
|
2267
|
+
The model separates what was *visible* and does not repaint what sat behind a subject, so the flat picture is kept as an `Original image` layer underneath.
|
|
2268
|
+
|
|
2269
|
+
### `baker images layers <imageId>`
|
|
2270
|
+
|
|
2271
|
+
Reads back the layers of an image already split with `layerize`. Free — no provider call. `--full` includes geometry and typography.
|
|
2272
|
+
|
|
2254
2273
|
### `baker images upscale <imageId>`
|
|
2255
2274
|
|
|
2256
2275
|
Super-resolution via the Convex backend (Replicate, cost-tracked at $0.05/image). Operates on a library image by ID — upload the file first via `baker images upload`, then upscale.
|