Image-to-image editing in the browser: what actually changes when you type a prompt
Most people meet image generation as text-to-image: type a scene, get a picture that never existed. Image-to-image is the other half of that story, and it is the half that fits real work, because you start from a photo y
Most people meet image generation as text-to-image: type a scene, get a picture that never existed. Image-to-image is the other half of that story, and it is the half that fits real work, because you start from a photo you already have.
Here is what I have learned using i2i for product shots, thumbnails and blog images over the last year.
What i2i keeps, and what it replaces
In text-to-image the model invents everything. In image-to-image the source photo is a constraint: composition, perspective and usually the identity of the main subject survive, while the attributes you describe get rewritten. That sounds simple, but it is the whole reason i2i is usable for real assets - the guardrails are the photo itself.
The practical consequence: describe changes, not scenes. If you write a full scene description, the model has to reconcile it with the source and you get mush.
Three prompt patterns that work
1. Background swap. Keep the subject, name the new environment and the light: “replace the background with a plain warm grey studio wall, soft window light from the left, keep the product untouched”. Naming the light matters more than naming the color.
2. Style transfer. Anchor on one reference: “repaint this as a flat vector illustration, three colors, no gradients, thick outlines”. Two style adjectives fight each other; one style plus concrete attributes does not.
3. Object replacement. Say what leaves, what arrives, and what must not move: “remove the coffee cup, put a folded notebook in the same spot, keep the desk position and shadows”.
Failure modes worth knowing
- Identity drift. Faces and logos drift when the edit touches them at all. Mask the area you care about or run the pass and composite the untouched region back.
- Text mangling. Small type in the source becomes plausible-looking nonsense. Regenerate type in a design tool instead.
- Over-stylization. A model asked for “a bit more contrast” will often return a different image. Ask for a specific operation instead of a vague intensity.
- Hands and thin structures. Straps, cables, glasses frames: any edit near them tends to melt.
One change per pass
Stacking three edits in one prompt is where quality falls off a cliff. I run one change at a time and keep the source and each intermediate result, so a failed pass costs one step and not the whole session. The same rule applies whether I am working in a desktop app or in a browser tool - the pass count is the variable.
When I want a fast first pass without opening Photoshop, I run the photo through imgtoimg AI (https://imgtoimg-ai.net/), a browser-based image-to-image editor: upload the file, type the change, download the result. No install, and a few edits a day are free, which is enough for a thumbnail pass.
When not to use it
For exact color matching, layered retouching or anything that has to be reproducible pixel-for-pixel, stay in a deterministic editor. i2i is for the exploration step - the ten variations you look at before deciding what the final asset should be. Used that way it saves real time; used as a replacement for retouching, it creates work.
The short version
- Start from the photo; describe the delta.
- One change per pass, and keep every intermediate.
- Protect faces, logos and fine structures.
- Treat output as a candidate, not a deliverable.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.