@pixerate/editor 0.224.0 → 0.224.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/editor",
3
- "version": "0.224.0",
3
+ "version": "0.224.1",
4
4
  "description": "UI-agnostic rich text and media editing core library",
5
5
  "author": "Pixerate",
6
6
  "license": "MIT",
@@ -48,8 +48,9 @@ This skill is the method. `pixerate-image-editor` has the tool reference, and it
48
48
  3. **Make a retouch layer.** `add_pixel_layer` named "Retouch" above the photo; all healing goes
49
49
  on it with `sample: "current-below"`.
50
50
  **Check:** `list_layers` shows it active above the photo.
51
- 4. **Heal small to large.** `spot_heal` for spots (one dab, `brush.size` a little larger than the
52
- spot, `hardness` 0.2-0.5); a short stroke of dabs along a stray hair. `heal_brush` from a clean
51
+ 4. **Heal small to large.** `spot_heal` for spots (one dab, `hardness` 0.2-0.5, `brush.size`
52
+ 2.5-3× the spot's width: a soft brush heals fully only in its middle, so one just over the
53
+ spot leaves a dark ring); a short stroke of dabs along a stray hair. `heal_brush` from a clean
53
54
  source of the same texture for larger flaws; `clone_stamp` near edges (lips, eyes, hairline)
54
55
  where healing would pull colour across.
55
56
  **Check:** `measure_region` around each flaw: its `p1` is near the clean skin's; `capture_view`
@@ -82,7 +83,9 @@ This skill is the method. `pixerate-image-editor` has the tool reference, and it
82
83
  ## Recipes
83
84
 
84
85
  **Clean-up pass.** `add_pixel_layer` "Retouch" → one `spot_heal` per spot (`points: [{x, y}]`,
85
- `sample: "current-below"`, `brush: { size, hardness: 0.3 }`) → `measure_region` around each.
86
+ `sample: "current-below"`, `brush: { size: 3 × the spot, hardness: 0.3 }`) → `measure_region` on
87
+ a box about 3× the spot around each. The spot is gone when the box's `stats.luminance.p1` is
88
+ within about 10 levels of the skin's around it; if not, the edge is left: dab again one size up.
86
89
 
87
90
  **Stray hair.** `spot_heal` with `points` every 8-10 px along the hair and a brush 1.5-2× its
88
91
  width; check the whole length with one `measure_region` box over it.
@@ -97,8 +100,9 @@ width; check the whole length with one `measure_region` box over it.
97
100
  `current-below`.
98
101
  - **An empty layer with `sample: "current"`** has nothing to copy, so the stroke does nothing.
99
102
  - **Over-smoothing.** Blurring skin removes pores and looks fake; heal flaws instead.
100
- - **Big brushes.** A heal brush much larger than the flaw pulls in colour from around it; keep it
101
- just over the flaw.
103
+ - **Brush size.** Too small a soft brush leaves a faint ring of the flaw (its edge falls in the
104
+ brush's soft falloff); much larger than about 4× the flaw pulls in colour from around it. Aim
105
+ for 2.5-3× the flaw's width with a soft brush, or about 1.5× with `hardness` near 1.
102
106
  - **Healing across an edge** smears lips or lashes into skin; clone along edges instead.
103
107
  - **Removing features.** Moles, freckles and scars are part of a face; ask before removing them.
104
108
  - **Bright white eyes and teeth** look unnatural; small gamma moves, and measure.