pixelkiln 0.102.2 → 0.104.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.
@@ -205,6 +205,45 @@ with no `view` is not pushed top-down:
205
205
  Any other value is refused at `plan`. Note `detail`'s top value is `highly
206
206
  detailed` here, where `map` takes `high detail`.
207
207
 
208
+ `textGuidanceScale` (1 to 20, PixelLab's default 8) sets how closely the
209
+ image follows its prompt: lower leaves the model more freedom, higher holds
210
+ it to the words. It enters a `pixflux` asset's identity only when set, so
211
+ adding it to one style leaves every other hash alone. Before November 2026
212
+ `pixflux` ignored it; a `pixflux` style that already carried one will plan as
213
+ stale once, because the request is now different.
214
+
215
+ ```jsonc
216
+ "icons": {
217
+ "generator": "pixflux",
218
+ "textGuidanceScale": 12,
219
+ "outDir": "art/icons"
220
+ }
221
+ ```
222
+
223
+ Three more `pixflux` options, each sent and hashed only when set:
224
+
225
+ - **`isometric: true`** on the style draws in isometric view. In one test
226
+ it clearly changed the result: the same knight came back in a
227
+ three-quarter stance.
228
+ - **`direction`** on an asset (`south`, `east`, `north-west` and so on) is
229
+ the way the subject faces. PixelLab calls it weakly guiding, and it was
230
+ weak in testing: `east` turned a front-facing knight only slightly, and
231
+ `west` came back all but identical to no direction at all. Say the facing
232
+ in the prompt as well if it matters.
233
+ - **`backgroundRemoval: "complex"`** on the style uses PixelLab's slower
234
+ background removal, meant for fine or busy edges; `"simple"` is its
235
+ default. On a clean-edged knight the two results were nearly the same.
236
+ It needs `noBackground` (on by default) and is refused without it.
237
+
238
+ ```jsonc
239
+ "props_iso": { "generator": "pixflux", "isometric": true, "backgroundRemoval": "complex", "outDir": "art/props" }
240
+ // and on an asset:
241
+ "guard": { "prompt": "a knight holding a spear, facing right", "direction": "east" }
242
+ ```
243
+
244
+ A `pixflux` style that already carried `isometric: true`, which was ignored
245
+ until now, will plan as stale once.
246
+
208
247
  **Before November 2026 these four fields were not sent for `pixflux`.**
209
248
  They were already part of the asset's identity, so no hash or lock entry
210
249
  changed when that was fixed, and files already generated are untouched. A
package/docs/MANIFEST.md CHANGED
@@ -72,6 +72,7 @@ not merely a label edit.
72
72
  | `mirror` | string | Another asset of the same style flipped left to right, made locally at no cost. See [Mirrors](./CHARACTERS.md#mirrors). |
73
73
  | `initImage` | string | `pixflux`, `map` and `isometricTile` styles: a PNG to start the drawing from, relative to the manifest. See [Starting from an image](#starting-from-an-image). |
74
74
  | `initImageStrength` | integer 1–999, default 300 | With `initImage`: how strongly the starting image holds. About 100 blends it with the prompt; 300 and up mostly returns it. |
75
+ | `direction` | string | `pixflux` styles: the way the subject faces, one of the 8 compass directions. Weakly guiding. Part of the asset's identity only when set. |
75
76
  | `terrainReferences` | object | `terrain` styles: a PNG per terrain to take that terrain's look from, `{ "lower": "refs/water.png", "upper": "refs/sand.png", "transition": "refs/foam.png" }`, paths relative to the manifest. See [Terrain reference images](./TILES.md#terrain-reference-images). |
76
77
  | `derive` | object | Made from existing pixels by one local transform, at no cost, with no provider. See [Derived and external assets](#derived-and-external-assets). |
77
78
  | `external` | object | Built by a script or tool outside pixelkiln; pixelkiln records and tracks the file but never builds it. See [Derived and external assets](#derived-and-external-assets). |
@@ -176,8 +177,9 @@ One asset using the fields most projects reach for:
176
177
  | `directions` | `8` | `character` only. `4` or `8`; every engine but `standard` draws 8. |
177
178
  | `template` | `mannequin` | `character` only. Body template: `mannequin`, or `bear`, `cat`, `dog`, `horse`, `lion`; `custom` for `pro-flash`. |
178
179
  | `proportions` | | `character` only, `standard` humanoid bases. A preset (`default`, `chibi`, `cartoon`, `stylized`, `realistic_male`, `realistic_female`, `heroic`) or multipliers `{ headSize, armsLength, legsLength, shoulderWidth, hipWidth }`, each 0.5 to 2. An asset may override it. |
179
- | `textGuidanceScale` | `8` | `character` only. How closely a `standard` base and a template loop follow their text, 1 to 20. |
180
- | `isometric` | `false` | `character` only. Draw `standard` bases and every loop in isometric view. |
180
+ | `textGuidanceScale` | `8` | `character` and `pixflux`. How closely a `standard` character base and a template loop, or a `pixflux` image, follow their text, 1 to 20. Part of a `pixflux` asset's identity only when set. Other generators ignore it. |
181
+ | `backgroundRemoval` | `simple` | `pixflux` with `noBackground`: `simple` or `complex` background removal. Part of the asset's identity only when set. |
182
+ | `isometric` | `false` | `character` and `pixflux`. Draw `standard` character bases and every loop, or a `pixflux` image, in isometric view. Part of a `pixflux` asset's identity only when true. Other generators ignore it. |
181
183
  | `enhancePrompt` | `false` | `character` only, `v3` bases. Let PixelLab expand the prompt into a fuller one before drawing. |
182
184
  | `styleCharacter` | | `character` only, `pro` bases. The asset id of a generated 8-direction character in this style whose look bases drawn from text or a concept follow. An asset may override it. |
183
185
  | `styleTraits` | all true | `character` `pro-flash` bases and `imageProFlash` styles, with a style image. `{ palette, outline, detail, shading }` booleans: which traits the style image lends. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixelkiln",
3
- "version": "0.102.2",
3
+ "version": "0.104.0",
4
4
  "description": "Manifest-driven pixel-art generation, review, recovery, and packaging with deterministic provenance.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -449,6 +449,13 @@
449
449
  "isometric": {
450
450
  "type": "boolean"
451
451
  },
452
+ "backgroundRemoval": {
453
+ "type": "string",
454
+ "enum": [
455
+ "simple",
456
+ "complex"
457
+ ]
458
+ },
452
459
  "enhancePrompt": {
453
460
  "type": "boolean"
454
461
  },
@@ -1002,6 +1009,13 @@
1002
1009
  "isometric": {
1003
1010
  "type": "boolean"
1004
1011
  },
1012
+ "backgroundRemoval": {
1013
+ "type": "string",
1014
+ "enum": [
1015
+ "simple",
1016
+ "complex"
1017
+ ]
1018
+ },
1005
1019
  "enhancePrompt": {
1006
1020
  "type": "boolean"
1007
1021
  },
@@ -1992,6 +2006,19 @@
1992
2006
  "type": "string",
1993
2007
  "minLength": 1
1994
2008
  },
2009
+ "direction": {
2010
+ "type": "string",
2011
+ "enum": [
2012
+ "south",
2013
+ "south-east",
2014
+ "east",
2015
+ "north-east",
2016
+ "north",
2017
+ "north-west",
2018
+ "west",
2019
+ "south-west"
2020
+ ]
2021
+ },
1995
2022
  "initImageStrength": {
1996
2023
  "type": "integer",
1997
2024
  "minimum": 1,
@@ -524,6 +524,13 @@
524
524
  "isometric": {
525
525
  "type": "boolean"
526
526
  },
527
+ "backgroundRemoval": {
528
+ "type": "string",
529
+ "enum": [
530
+ "simple",
531
+ "complex"
532
+ ]
533
+ },
527
534
  "enhancePrompt": {
528
535
  "type": "boolean"
529
536
  },