Don't describe the layout, draw it
My AI-generated covers wouldn't fit my blog cards, however I worded the prompt. Giving the model a blurry sketch to start from fixed the titles without changing the style.

My blog covers are 16:9, but their cards only show the square in the middle. I make the covers with an image model called Krea 2, so each one needs its title and machine in the middle, with empty space on both sides.
My prompt asked for exactly that. Even so, when I checked 113 drafts for my hardest posts, 94 had a title that didn't fit the card.
Words set the zoom
My first clue was a guide called Controlling "Zoom" With Words Alone. It says whatever you describe first, and with the most words, takes up most of the image. My prompt started with the machine, and only mentioned the empty sides at word 499 of 581.
So I described the empty space first. It worked too well:

A prompt that asked for a poster came closer, and its titles were straight. In one test, everything fit in 4 out of 4 covers, so I thought I'd solved it. When I tried more posts and a second seed, only 5 out of 8 fit. The style had changed too, with flatter letters and simpler machines.
I also tried a LoRA, a small add-on for the model, that was made to add negative space. It tilted the titles and changed my style as well.
Give it a sketch
I'd been using words to explain where things go, but they're much better at explaining what things are. So I drew the layout instead:

Image models like this one start with random noise and turn it into an image step by step. The early steps mostly set the big shapes, and the later ones add the detail. Normally, that first noise has a big effect on the layout.
With image-to-image, you give the model a picture to start from. It's mixed with noise, and the model skips the first few steps. It's often used to change a finished picture, but the idea goes back to a paper called SDEdit, which turned rough strokes of colour into realistic images. I only needed it for the layout.
A small script makes my sketch. The longer a title is, the wider its bar, up to a width that fits the card:
export const barWidth = (text: string, { title, letter }: Layout) =>
Math.min(title, text.length * letter);Then I send the sketch with exactly the same prompt as before. I use SwarmUI, so it only takes two more settings:
const from = start && {
initimage: `data:image/png;base64,${start.image.toString('base64')}`,
initimagecreativity: start.creativity
};How much control is enough?
initimagecreativity sets how many of the steps the model does. A lower number skips more of them, so the result stays closer to the sketch. My covers use 8 steps, and I tried skipping 1, 2 and 3:
- 1 step (0.875): it follows the layout and keeps my style.
- 2 steps (0.75): the layout works, but the machines get simpler.
- 3 steps (0.625): the letters are blurry, and you can see my block.

The sketch guides the layout, and the prompt does the rest. The more the model copies my sketch, the less it can add of its own.
I also tried the real title text, squeezed to fit, instead of plain bars. I expected it to help with spelling. Both versions spelled every title correctly in the small previews I checked, but the plain bars fit slightly better. They also don't need a font, so that's what I use.
Measure it, with more than one seed
I'd already been fooled by one good seed, so I tested the bars on 9 posts with 4 seeds each. A script checked how far the ivory letters reached. All 36 titles fit, with at least 15 pixels to spare. In my first comparison, none of the 8 covers made without a sketch fit.
It isn't perfect. In 4 of those 36 covers, the machine went past the edge of the card. All 4 used the same seed. I thought a narrower block would fix it, but the machines were no narrower. Each scene and seed still has a big effect, so I check every draft and reject the ones that don't fit.
The sketch also keeps the titles in almost the same place, so my covers look more alike. I like that for a set, but it does mean less variety.
Keep the sketch's settings too
A prompt and a seed are no longer enough to make the same cover again. SwarmUI saves the creativity setting in the image, but not the sketch itself. So my tool saves the sketch's settings with each draft, and copies them to the cover's file when I choose it. If the creativity setting doesn't match the image, it won't let me use that draft.
If your image model keeps ignoring where you want things, stop adding words. Draw a few blurry shapes and let the model skip one step. Then test it with more than one seed before you decide it works.

