GrepBoard/Manuals
605 manuals ·

Keep one illustration style across a series of blog images

·Tested on Gemini Image Generation Prompting Guide · 2026-10·Test scope ↓·7 steps

Lock medium, line weight, 4-color palette, texture, and framing into a style block, and verify series consistency using color distance calculations.

Generating individual illustrations for each post in a blog series often yields inconsistent color schemes, stroke weights, and textures. While facial identity across character-driven visuals is addressed in Consistent Character Generation, inanimate scenes and object illustrations lack persistent anchor figures and easily drift in visual tone. A one-word style label leaves line weight, color, and texture unspecified. Lock the medium, stroke weight, 4-color palette, texture, and framing into an explicit style block, and measure color distances to catch drift across the series.

[1] See what a one-word style prompt leaves out. Consider a 5-part fictional editorial series on home organization (Part 1: Bookshelf, Part 2: Wardrobe, Part 3: Refrigerator, Part 4: Desk, Part 5: Shoe rack). No images were generated, so the table below is not a test result; it lists the short prompts and what they leave unspecified.

Series PartShort PromptLeft unspecified
Part 1 BookshelfA flat illustration of a tidy bookshelfline weight, color, texture, framing
Part 2 WardrobeA flat illustration of a tidy wardrobeline weight, color, texture, framing
Part 3 RefrigeratorA flat illustration of a tidy refrigeratorline weight, color, texture, framing
Part 4 DeskA flat illustration of a tidy deskline weight, color, texture, framing
Part 5 Shoe rackA flat illustration of a tidy shoe rackline weight, color, texture, framing

According to Google's Gemini Image Generation Prompting Tips, recommends describing subject, context, action, and style details in descriptive sentences rather than keyword lists.

[2] Design a reusable style block. Lock five core parameters into a consistent template and append it to every prompt in the series.

style-block.txt
[Subject]: {Description of object and spatial layout}[Medium]: Flat vector illustration[Linework]: Clean, consistent medium-weight charcoal outlines (#2B3A42)[Color Palette]: Strictly limited to 4 colors: Dark Slate (#2B3A42), Off-White (#EFEFEF), Warm Sand (#F4A261), Soft Teal (#2A9D8F)[Texture]: Subtle matte paper texture, no glossy gradients, no photographic shadows[Composition]: Frontal eye-level flat view, perfectly centered object with 30% negative space on edges

[3] Assemble the 5-part prompt series. Keep the style block unchanged and swap only the [Subject] parameter for each topic.

prompt-series.txt
# Part 1: Bookshelf Example[Subject]: Organised wooden bookshelf with neatly arranged books and a small potted plant[Medium]: Flat vector illustration[Linework]: Clean, consistent medium-weight charcoal outlines (#2B3A42)[Color Palette]: Strictly limited to 4 colors: Dark Slate (#2B3A42), Off-White (#EFEFEF), Warm Sand (#F4A261), Soft Teal (#2A9D8F)[Texture]: Subtle matte paper texture, no glossy gradients, no photographic shadows[Composition]: Frontal eye-level flat view, perfectly centered object with 30% negative space on edges # Parts 2 to 5: Subject Substitution (Style block remains identical)Part 2 Wardrobe: Organised wardrobe with color-coordinated shirts on hangersPart 3 Refrigerator: Tidy refrigerator interior with labeled transparent food containersPart 4 Desk: Minimalist tidy desk with a laptop, ceramic mug, and desk organizerPart 5 Shoe rack: Neat entryway shoe rack with neatly aligned sneakers and boots

The Gemini API Image Generation Guide says up to 3 images can be used as style references, and marks this as available only for Gemini 3 Pro Image. You can pick the best Part 1 result and send it as an image with the requests for Parts 2 through 5. The format for sending images differs by model and SDK version, so follow the call example in that same document. This guide did not test the call code, nor whether a reference image reduces drift.

[4] Compare overall composition and extract palette data. Tile all 5 images horizontally using ImageMagick montage to spot outliers visually.

console
$ montage img-1.png img-2.png img-3.png img-4.png img-5.png -geometry +10+10 -tile 5x1 overview.png

Reduce each image to 4 colors with ImageMagick convert and write them as one scene: #HEX #HEX ... line, the format the check script below reads. This command was not run for this guide.

console
$ echo "bookshelf: $(convert img-1.png -alpha off -colors 4 -unique-colors txt:- | awk '/^[0-9]/{print $3}' | tr '\n' ' ')" >> colors.txt

[5] Write a color distance verification script. Compute the Euclidean distance in RGB space between each extracted color and the 4 target palette colors. If any color deviates beyond the threshold (35.0) from its nearest target, flag it as DRIFT and return exit code 1.

run/check_palette.py
#!/usr/bin/env python3import sys, math def rgb(h):    h = h.strip().lstrip('#')    return tuple(int(h[i:i+2], 16) for i in (0, 2, 4)) palette = [rgb(l.strip()) for l in open(sys.argv[1], encoding="utf-8") if l.strip().startswith("#")]threshold = float(sys.argv[3]) if len(sys.argv) > 3 else 35.0drifts = 0 for line in open(sys.argv[2], encoding="utf-8"):    line = line.strip()    if not line or line.startswith("#"): continue    scene, raw = line.split(":", 1) if ":" in line else ("item", line)    for token in [t.strip().strip(",") for t in raw.split() if t.strip()]:        c = rgb(token)        d = min(math.sqrt(sum((a - b) ** 2 for a, b in zip(c, p))) for p in palette)        status = "OK   " if d <= threshold else "DRIFT"        if d > threshold: drifts += 1        print(f"[{scene.strip()}] {status} {token:<8} (dist: {d:.2f})") print(f"Total drifts: {drifts}")sys.exit(1 if drifts else 0)

[6] Execute the verification script. The input colors_valid.txt was not extracted from images; it holds 20 hand-written example colors slightly off the reference colors. The farthest is 3.46 away, so all pass with exit code 0.

console
$ python3 run/check_palette.py run/palette.txt run/colors_valid.txt 35.0[bookshelf] OK    #2B3A42  (dist: 0.00)[bookshelf] OK    #EFEFEF  (dist: 0.00)…[shoerack] OK    #2B9D8F  (dist: 1.00)Total drifts: 0

To test edge-case detection, intentionally inject non-palette purple (#8A2BE2) and neon lime (#00FF00) into the refrigerator sample in colors_drift.txt (not model outputs). Both entries are flagged DRIFT and the exit code is 1. The check_palette.py shown here does not validate HEX format (#12345 is read as a different color without an error), so it has no check that rejects malformed HEX strings with a clear message. A non-hex string such as #INVALID_HEX crashes it with a ValueError (checked with run/colors_invalid.txt).

console
$ python3 run/check_palette.py run/palette.txt run/colors_drift.txt 35.0[bookshelf] OK    #2B3A42  (dist: 0.00)…[refrigerator] DRIFT #8A2BE2  (dist: 170.59)[refrigerator] DRIFT #00FF00  (dist: 178.37)…[shoerack] OK    #2B9D8F  (dist: 1.00)Total drifts: 2

[7] Address recurring edge-case failures during production runs. The two items below are check points, not observations from generated images.

  • Unwanted accent colors: check whether shades outside the palette were used.
  • Fix: Append No auxiliary accent colors, do not blend or create new hue gradients directly to the [Color Palette] definition.
  • Inconsistent linework: in scenes with many inner objects, such as the refrigerator, check that inner and outer lines have the same weight.
  • Fix: Append Uniform stroke weight across all inner objects, equal to outer silhouette boundary to the [Linework] definition.
  • When Not to Use: Avoid using generative models when pixel-perfect SVG vectors or corporate identity logotypes are required. Use dedicated vector design software for those.

#illustration#prompt#gemini#style-consistency