Generating Character And Background Images

Reads characters.json and backgrounds.json, then generates reference images for each character and background using the kie.ai nano-banana-pro API. Character images (1:1 aspect ratio) are saved to ./characters/ and background images (16:9) to ./backgrounds/, named by their IDs (char_001.png, bg_001.png, etc.). Each image is then uploaded to imgbb for permanent public hosting, and the imgbb URL is written back as an image_url field in both JSON files — these URLs are required by generate_videos.py. Part of the Story-to-Animation pipeline (Step 3 of 5). Run scripts/generate_images.py to execute. Use when both JSON prompt files exist and the user wants to generate the actual reference images. After generating all images, ALWAYS present the output and wait for explicit user approval. Do NOT automatically trigger the next pipeline step.

divakarwl12 Updated

File contents

divakarwl12/story-to-animation-skills/tree/main/generating-character-and-background-images commit 5bd36a24da

Frequently asked questions

npx skillmds@latest add divakarwl12/generating-character-and-background-images