mirror of
https://github.com/nexu-io/open-design.git
synced 2026-06-01 03:14:35 +07:00
* feat(prompt-templates): add crayon kid-drawing style-transfer template - illustration-crayon-kid-drawing-rework: an image-to-image prompt that reworks any reference image into a hand-drawn crayon illustration with childlike whimsy (castles, candy, stars, clouds, rainbows) on clean white paper. Tuned for gpt-image-2 edits and works across product shots, portraits, and screenshots. - Ships with a cover preview rendered from the Open Design X profile screenshot via the template's own prompt, downscaled to 1536x1024 JPEG. - Category reuses existing 'Illustration' enum value. * fix(prompt-templates): address crayon template review feedback (#295) - aspect: switch from unsupported 3:2 to 4:3 (per @mrcfps). The app contract only recognizes 1:1 / 16:9 / 9:16 / 4:3 / 3:4 (MediaAspect in packages/contracts and MEDIA_ASPECTS in apps/daemon/src/media-models.ts); gpt-image-* silently falls back to 1024x1024 for unknown aspects, which would have made this template generate square images instead of landscape. - Cover preview re-cropped from 1536x1024 to 1365x1024 (4:3) so the thumbnail matches the declared aspect. Content preserved (center crop). - prompt: add 'Preserve the general layout and spatial relationships of the original image — transform the style first, embellish second' so small UI elements, faces, and logos don't get overwhelmed by castles/candy/stars decoration (per @lefarcen). - tags: add 'rework' and 'transform' to improve discoverability for users searching 'rework my photo' / 'transform screenshot' (per @lefarcen). - summary: clarify that this is an image-to-image edit requiring a reference image upload, not a pure text-to-image generation prompt (per @lefarcen). * fix(i18n): register German content for new templates and their tags The 'Validate workspace' CI job (apps/web i18n/content.test.ts) enforces that every template slug, category, and tag that appears in a shipped JSON template also has a German translation in apps/web/src/i18n/content.ts. This PR's new template plus two previously merged first-party templates (#187: game-ui-ancient-china-open-world-mmo-hud and social-media-post-sensational-girl-dance-storyboard-8-shots) were missing from the German dictionaries, so the suite was red. Changes: - DE_PROMPT_TEMPLATE_CATEGORIES: add 'Game UI' -> 'Spiel-UI'. - DE_PROMPT_TEMPLATE_TAGS: add 11 tags used by the three templates (ancient-china, childlike, crayon, dance, fashion, game-ui, hand-drawn, hud, illustration, image-to-image, mmo, open-world, rework, sequence, storyboard, style-transfer, transform, wuxia) with German equivalents. - DE_PROMPT_TEMPLATE_COPY: add German title + summary for game-ui-ancient-china-open-world-mmo-hud, illustration-crayon-kid-drawing-rework, and social-media-post-sensational-girl-dance-storyboard-8-shots. Local verification: apps/web vitest suite (14 files, 68 tests) passes. --------- Co-authored-by: Joey <joey@open-design.local> |
||
|---|---|---|
| .. | ||
| game-screenshot-anime-fighting-game-captain-ryuuga-vs-kaze-renshin.jpg | ||
| game-screenshot-three-kingdoms-guanyu-slaying-yanliang.jpg | ||
| game-screenshot-three-kingdoms-lyubu-yuanmen-archery.jpg | ||
| game-screenshot-three-kingdoms-zhaoyun-cradle-escape.jpg | ||
| game-ui-ancient-china-open-world-mmo-hud.jpg | ||
| illustration-crayon-kid-drawing-rework.jpg | ||
| infographic-otaku-dance-choreography-breakdown-gokurakujodo-16-panels.jpg | ||
| social-media-post-sensational-girl-dance-storyboard-8-shots.jpg | ||