Sub topic 11
Finishing touches outside the generator
This chapter assumes you can already produce a usable image from a prompt, and that you know the basics of resolution, aspect ratio, and file formats. You should also be comfortable running a short Python script. The generator gives you a strong starting point. Post-processing turns it into an asset that fits a channel, matches your brand, and survives review.
Why finish outside the generator
Generators are good at producing a whole picture and poor at precise, repeatable details. Asking the tool to fix a slightly dull color or to leave exactly 20 percent of the frame empty often costs many attempts. Other software can do the same job in seconds and gives the same result every time.
Finishing outside the generator has three practical benefits:
- Control. A crop, a color shift, or a text overlay does exactly what you specify.
- Repeatability. A script or an editor preset applies the same treatment to every image in a campaign.
- Lower cost. You avoid spending generation credits on changes that a simple edit can make.
The risk is over-editing. Each pass can add compression damage or visible artifacts. Keep the original generation untouched and work on copies.
A typical finishing order
The order of steps matters, because some steps undo others. A common sequence is:
- Choose the best generation and keep the original file.
- Repair local defects, such as a malformed hand or a stray object.
- Upscale if the image is too small for the largest channel.
- Crop to each channel's aspect ratio.
- Adjust color and tone.
- Add text, logos, and other overlays.
- Export with the right format and compression.
Crop before you add text, so the text is placed in the final frame. Upscale before you crop, so you crop from the largest version you have.
Repairing local defects
Small defects are common: an extra finger, a warped label, an odd shape in the background. You have two options.
- Regenerate the region. Use the inpainting tool in the generator, which redraws only a masked area. This works well when the fix needs new content.
- Retouch manually. Use the clone, heal, or content-aware tools in an image editor. This works well for removing a small object or smoothing a blemish.
Try retouching first for small fixes. Inpainting can change the texture or lighting of the patch so that it no longer matches the surroundings. If the patch looks different, feather the mask edge or blend the layers at reduced opacity.
Upscaling
Many generators output images around one to two megapixels. A 1080 by 1920 story is about two megapixels, so it may fit. A print flyer or a large website banner will not.
An upscaler enlarges an image and adds plausible detail. Basic resizing methods such as Lanczos only interpolate between existing pixels and give soft results at large factors. AI upscalers invent new detail, which looks sharper but can alter fine features such as faces, fabric patterns, and small text.
Follow these rules:
- Upscale once, by the factor you need. Repeated upscaling compounds artifacts.
- Compare the result with the original at 100 percent zoom, focusing on faces, hands, and product edges.
- Do not upscale an image that contains a real product label or logo you must reproduce faithfully. The upscaler may change the details.
Cropping for channels
Each channel has its own aspect ratio, and a generated image has only one. Cropping converts one image into several. The script below uses Pillow, a Python imaging library, to crop and resize one source into several channel sizes.
from pathlib import Path
from PIL import Image, ImageOps
SIZES = {
"square_feed": (1080, 1080),
"portrait_feed": (1080, 1350),
"link_ad": (1200, 628),
"story": (1080, 1920),
}
def export_variants(source_path, out_dir):
source = Path(source_path)
out = Path(out_dir)
out.mkdir(parents=True, exist_ok=True)
with Image.open(source) as img:
img = img.convert("RGB")
for name, size in SIZES.items():
variant = ImageOps.fit(img, size, method=Image.Resampling.LANCZOS, centering=(0.5, 0.5))
variant.save(out / f"{source.stem}_{name}.jpg", quality=90)
export_variants("bottle_hero.png", "exports")ImageOps.fit scales the image until it covers the target size, then trims the overflow around the centering point. The default (0.5, 0.5) trims equally on all sides. That is a problem when the subject is off center. In the bottle example from the creative brief, the bottle sits on the right third of the frame and the left is empty for a headline. A center crop to a square keeps both, but a 1200 by 628 crop removes top and bottom, and a story crop removes the left and right sides, which may cut the bottle.
Change centering to shift the crop toward the subject. For a subject on the right, try (0.8, 0.5). Always open each export and check it.
Design for cropping at the generation stage. If you know you need both a wide and a tall version, ask for a subject with generous margin on all sides. That gives each crop room to work.
Color and tone
Generated images often vary in white balance, contrast, and saturation, even with the same palette in the prompt. Adjust color after you choose the image, not before, and apply the same adjustments to the whole set so the campaign looks unified.
The adjustments that matter most are:
- White balance. Correct a yellow or blue cast so neutral grays look neutral.
- Exposure and contrast. Brighten dark areas and keep highlights from clipping to pure white.
- Saturation. Pull back oversaturated colors, which signal a generated look.
- Brand color match. Compare key colors against your brand hex values, such as
#0B3D91, and shift hue only where the color is a brand element, such as a product or packaging.
Use an eyedropper tool to read the actual color of a brand element. If it is far from the brand value, a selective hue and saturation adjustment on that element is better than a global shift that changes everything else.
If you edit many images the same way, save the adjustments as a preset or a script, so you get the same result each time.
Adding text and logos
Generators draw letters poorly and often invent spelling errors. Add all text and logos in a layout or editing tool instead. Place them on the cropped image so you can see exactly how they sit.
Practical points:
- Keep text inside the safe area. Platforms overlay interface elements on stories and short video, usually near the top and bottom, so keep key text away from those edges.
- Check contrast between text and background. If the headline is hard to read, add a subtle gradient or a semi-transparent panel behind it, rather than recoloring the image.
- Use the supplied logo file, in vector format if possible. Do not ask the generator to draw it.
- Leave the empty space you planned in the brief. That space is why you asked for the composition.
Exporting for delivery
Pick the format by content and by channel requirements.
| Format | Best for | Notes |
|---|---|---|
| JPEG | Photographic images | Small files, lossy. Quality 85 to 92 is usually enough. |
| PNG | Images with sharp text or transparency | Lossless, larger files. |
| WebP | Web pages and some ads | Smaller than JPEG at similar quality. Check platform support. |
Also check these settings:
- Color space. Export in sRGB for screens. Other color spaces may display with shifted colors in browsers and apps.
- File size. Some ad platforms cap file size. If you exceed the cap, lower the quality in small steps and re-check the image.
- Metadata. Exports may carry embedded information. Decide whether to keep or strip it, and follow your organization's disclosure policy for AI-generated content.
- File names. Use a consistent pattern that includes the campaign, subject, and size, such as
spring-trail_bottle-hero_1080x1350.jpg. This makes later testing and audits easier.
Common mistakes
| Mistake | Effect | Fix |
|---|---|---|
| Editing the only copy | You cannot undo or redo a crop | Keep the original and work on copies |
| Cropping before upscaling | Lower resolution in the final file | Upscale first, then crop |
| Saving JPEG repeatedly | Compression artifacts build up | Edit in a lossless format, export JPEG last |
| Skipping a per-size check | Cut-off subjects reach publication | Review every variant |
| Over-sharpening | Halos around edges | Apply sharpening lightly, once, at the end |
Exercise
You have a 1024 by 1024 generated image with the product on the right side. You must deliver a 1200 by 628 link ad and a 1080 by 1920 story. Describe the order of steps and one way to avoid cutting off the product.
Show answer
Keep the original file and work on copies. Repair any defects first. Upscale once if the larger size needs more pixels, since the story height of 1920 exceeds the source. Crop each size from the upscaled image, shifting the crop center toward the product (for example centering at 0.8 horizontally) instead of using the default center crop. Adjust color across both versions with the same settings. Then add the headline and logo on each cropped version, keeping text inside the safe area. Export as sRGB JPEG and open each file to confirm the product is fully visible.
Exercise
Why should text and logos be added after the generation step, and why after cropping?
Show answer
Generators often misspell words and distort logos, so overlays made in an editing tool are accurate and reusable. Adding them after cropping lets you position them inside the final frame and safe area for each size, so a later crop does not cut them off.