53 lines
3.0 KiB
Markdown
53 lines
3.0 KiB
Markdown
# Art
|
||
|
||
What the image pipeline taught (CLAUDE.md §5.1b).
|
||
|
||
## "Never enlarge" also skips the crop
|
||
|
||
**What happened.** `art:accept` first resized a full-background picture with sharp's
|
||
`fit: 'cover'` and `withoutEnlargement: true`. A 900 × 600 picture accepted as the
|
||
1024 × 1024 app icon came out 900 × 600. Because it was smaller than the target, sharp
|
||
skipped the whole resize, crop included, and a rectangle would have become the icon. The
|
||
test *a full-background picture of the wrong shape is cropped from the middle* caught
|
||
it before the first real picture existed (`tools/art-prep/src/accept.ts`, `middle()`).
|
||
|
||
**Why it bit.** One option can switch off two jobs: changing the shape and changing the
|
||
size. "Don't blow it up" was meant for the size only.
|
||
|
||
**How to apply it.** Crop to the target shape first, as its own step, then only ever
|
||
shrink. Test the small, wrongly shaped input as well as the large one: a generator that
|
||
ignores the requested size is the normal case, not the edge case.
|
||
|
||
## A check on prompt words catches what review would miss
|
||
|
||
**What happened.** The first `pnpm art:board` refused its own manifest: the waiting
|
||
rose's cell said she was "quiet and *patient*", and `patient` is on the forbidden list
|
||
(§5.6 rule 3). The manifest checker runs `findForbidden` from `@rosea/content` over
|
||
every word a prompt is built from.
|
||
|
||
**Why it bit.** Prompts are not player-facing, so `lint:copy` never reads them. But a
|
||
prompt that names the book, or a word that drifts in from it, is exactly how a
|
||
likeness gets into the art (§8, *copyright through the back door*).
|
||
|
||
**How to apply it.** Any text that is assembled into something sent outside, a prompt
|
||
included, goes through the same forbidden list as player copy. Reword: *waiting with
|
||
patience* is allowed.
|
||
|
||
## A style prompt loses to the generator's default unless it is stronger and comes first
|
||
|
||
**What happened.** On 2026-11-07 the first `rose-sheet` came back as wet, pale watercolour with a
|
||
smiley face on a round ball inside the petals: a children's sticker sheet. STYLE.md §1 had asked for
|
||
matte gouache with plum-brown outlines, and its own *avoid* list named watercolour. The prompt was a
|
||
long document: the style, then pixel coordinates, cut lines and two lists of things not to draw,
|
||
among them the book's motifs.
|
||
|
||
**Why it bit.** A generator has a strong default for "cute character", and it fills every gap the
|
||
prompt leaves with that default. Prompts that bury the look under numbers it cannot use, and lists
|
||
of things not to draw, leave the gap wide; naming a motif, even to forbid it, makes it likelier.
|
||
|
||
**How to apply it.** Lead with the look, said positively and concretely (medium, texture, line,
|
||
light, audience); then the picture in plain words; then a short avoid list of generic faults. Keep
|
||
pixel geometry out of prompts (the cutting tools hold it). Check the book's motifs in review, not in
|
||
prompts. When a picture fails, name the exact failure in the character's own description (here:
|
||
*no round face, ball or bare patch inside the petals*), so every prompt carries it.
|