
2x2グリッド、16:9、これを4つの有名なSF映画について行う:class UniversalEditorialMetaphor: def __init__(self, topic): self.topic = topic self.semantics = infer_semantic_structure(topic) self.thesis = infer_visual_thesis(topic) self.mood = infer_editorial_tone(topic) self.metaphors = generate_candidate_metaphors( topic, count=12 ) self. best_metaphor = self. select_best_metaphor() def select_best_metaphor(self): return max( self.metaphors, key=lambda m: 0.35 * semantic_accuracy(m) + 0.25 * conceptual_originality(m) + 0.25 * visual_clarity(m) + 0.15 * silhouette_strength(m) ) def visual_actors(self): return { "primary": infer_dominant_form( self. best_metaphor ), "secondary": infer_consequence_or_partner( self. best_metaphor ), "interaction": infer_decisive_action( self. best_metaphor ) } def composition(self): return { "geometry": "asymmetric", "primary_scale": "monumental", "secondary_scale": "small", "camera": "flat editorial orthographic", "cropping": "dramatic boundary intrusion", "negative_space": "dominant", "focal_point": "physical interaction" } def typography(self): return { "heading": derive_chapter_title(self.topic), "embedded_word": infer_single_action_label_if_needed( self.topic ), "density": "minimal" } def render_style(self): return { "background": "warm ivory", "foreground": "near-black", "interior_lines": "fine white contours", "shadows": None, "gradients": None, "texture": "minimal editorial print", "format": "wide conceptual illustration" } def render(self): return compose( actors=self.visual_actors(), metaphor=self. best_metaphor, layout=self.composition(), typography=self.typography(), style=self.render_style() ) FINAL_IMAGE = UniversalEditorialMetaphor( topic="[TOPIC]" ).render()
この画像は Google の Nano Banana 2.1 で生成されました。ページ上のプロンプトが、生成に使われた原文そのものです。
作例は Nano Banana 2.1 で、次の設定で生成されました:120:67 · Poster · Cinematic · Sci-Fi。同じ設定を使うと最も近い結果が得られます。
まずプロンプトをそのままコピーし、スタイル・ライティング・構図のキーワードは残して被写体だけ置き換えます。出力は毎回変わるので、数回生成して選びましょう。
もちろんです。プロンプトは出発点として使うのが最適——記述語やアスペクト比、スタイルタグを調整して、自分だけの作品に仕上げてください。