Black October, explainedAppsGuidesAI DictionarySmall FixesOn RecordAboutFollow the lab

Image-to-image

Also called img2img, AI photo editing

Image-to-image AI takes a picture you give it, plus a few words, and makes a new picture that keeps the layout of yours.

In plain words

With text-to-image, you type a sentence and the AI starts from nothing. Image-to-image starts from a picture you give it: a photo, a scan or a rough sketch on paper.

You add a few words, like "make it a watercolour" or "turn this doodle into a real house". The AI keeps the big shapes and where things sit, and redraws the rest to match your words.

Most tools give you a dial for how much to change. Turn it low and you get your picture with a new finish. Turn it high and only the rough layout survives. This is how many "photo to cartoon" filters and AI photo editors work.

Everyday example

A tailor working from your old kurta

You hand a tailor your favourite old kurta and say "same fit, but in silk, with a collar". The tailor keeps the cut and size from your kurta and changes the cloth and details. Ask for small changes and it comes back nearly the same. Ask for a lot and only the basic shape stays.

Where the example breaks: A tailor measures your kurta exactly. The AI does not copy your picture's details. It blurs them into noise and redraws them, so small things like faces, text and logos can change even when you did not ask.

Go deeper

How it actually works

Most image-to-image tools today run on a diffusion model, the same kind used for text-to-image. The trick is where the process starts.

  1. Start from your picture, not from static

    Text-to-image starts from pure random noise. Image-to-image first compresses your picture into the model's latent space, then adds only part of the noise. The big shapes survive under the noise, the fine details do not.

  2. The strength dial sets how much noise

    A setting usually called strength decides how far towards pure noise your picture goes. In the popular diffusers library, 50 steps at strength 0.8 means 40 steps of noise are added and then 40 steps are removed. At 1.0 your picture is more or less ignored.

  3. Denoise towards your words

    The model then removes the noise step by step, steered by your prompt. Because it began from your noisy picture, the result keeps its layout and colours while the details follow the words. A 2021 paper called SDEdit described this add-noise-then-clean trick.

  4. Other routes to the same goal

    Before diffusion, a 2016 GAN system called pix2pix learned fixed jobs like turning edge sketches into photos or colouring black and white images. Newer models such as InstructPix2Pix (2022) follow written edit instructions directly. ControlNet adds even tighter control over pose and outline.

Early landmark
pix2pix, November 2016, by researchers at UC Berkeley: "Image-to-Image Translation with Conditional Adversarial Networks"
Diffusion method
SDEdit, August 2021: add noise to a guide image, then denoise it
Edit by instruction
InstructPix2Pix, November 2022: an image plus "make it snow" style instructions
Common uses
Sketch to render, style filters, product photo variations, colourising old photos, interior redesign mock-ups

To change only one part of a picture and leave the rest untouched, tools use a mask instead. That is inpainting.

Questions people ask

What is the difference between text-to-image and image-to-image?

Text-to-image starts from random noise and only your words. Image-to-image starts from a picture you supply, partly hidden under noise, so the result keeps that picture's layout. Both usually use the same kind of model.

What does strength or denoising strength mean?

It is how much of your original picture gets buried under noise before the AI redraws it. Low strength keeps your picture almost as it was. High strength gives the AI more freedom, and at the top setting your picture is more or less ignored.

Is image-to-image the same as a photo filter?

No. A normal filter changes colours and contrast with fixed maths, so every pixel stays where it was. Image-to-image redraws the picture, so it can change materials, style and details. That is also why it can alter faces you wanted kept.

Can I use image-to-image on someone else's photo?

Technically yes, but think about rights and consent. A photo of a person belongs to them and the photographer, and edited pictures of real people can mislead. Many platforms require labels on AI-edited images, and some uses are illegal. See deepfakes.

Further reading