Files

35 lines
1.7 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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.