页面简介
Edit part of an image with Precise Edit, Ideogram's AI inpainting tool. Mark one area with a mask and describe the change in words. A context window keeps large images at their original size.
正文摘录
AI inpainting that edits one part of an image. Mask the area to change and describe the edit in plain words. With a context window, Ideogram edits that region at its original pixels and returns the whole image at its original size; the context window depends on your account. Precise Edit runs on Ideogram 4.5. Upload the image to edit or drop a PNG, JPEG, WebP, GIF, BMP or TIFF image, up to 50 MB No image yet? Browse real edits in the examples Sign in to edit. Each edit uses credits. Free credits are limited; after that, Precise Edit needs a paid plan or bought credits. A film introducing the context window: one window of a 66-megapixel living room is marked over the fireplace, edited at its original pixels, and stitched back with no seams or artifacts, followed by edits to a staircase, a sofa, a ring, and a car beside a tram. Precise Edit with context window The mask marks the pixels that may change. The context window is the working region around it, up to 4.2 megapixels in area. Ideogram edits that window at its original pixels, so a large photo does not have to be downscaled, and the image outside the window is designed to come back as you sent it. Review the result against the original before you use it. Through the API, an image up to 67 megapixels and 50 MB keeps its full resolution when the edit uses a context window. Open Precise Edit API doc Only the window is edited, so the result keeps the original 4K resolution. Overview Precise Edit at a glance AI inpainting, sometimes called generative fill, means changing one part of a picture and letting the model blend the change into the scene. These are the controls Precise Edit gives you in the Ideogram app. What it does Changes one marked part of an image from an instruction in plain words, such as a new color, material or object, and leaves the rest of the picture in place. Image One image per edit. Upload a PNG, JPEG, WebP, GIF, BMP or TIFF file up to 50 MB, or start from an image you made or saved in Ideogram. Selection A mask you draw with Magic wand, Brush, Lasso or Rectangle. Without a mask, the instruction applies to the whole image. Instruction Written under What should change? Say what should change and what should stay the same. Reference images Up to four images that show the result you want, or three when a mask is set, because the mask uses one reference slot. Images per run From one to eight, chosen under Number of images. Quality Very low, Low, Medium or High. Medium is selected to start. Size of the result With a context window, the whole image comes back at the width and height you uploaded. Cost Each edit uses credits, and Apply edit shows the cost before it runs. Free credits are limited; after that, Precise Edit needs a paid plan or bought credits. Inpainting in the app Change one region and keep the surrounding image. Inpainting means changing one marked part of an image while the rest stays in place. In the Ideogram app it takes four steps. Open the image in Precise Edit Open an image you made or uploaded and select Edit. Precise Edit opens with the image loaded. Mask the area to change Select Add mask (shown as Mask & context window when your account has the context window), mark the area with Magic wand, Brush, Lasso or Rectangle, and click Done. Describe the change Under What should change?, write the edit in plain words, such as a new color, material or object. Add up to three reference images when the result should match a real product or logo. Apply the edit and review it Click Apply edit. The button shows the cost before you run it. Compare the result with the original at full size, then download it from Assets. For a large image, open Mask & context window if it is available on your account. In the mask editor, choose Auto to fit the window around your mask, Manual to place it yourself, or None to edit the whole image. An image too large to edit as a whole always uses a window, so the result keeps its exact size. The examples below show product color changes in Ecommerce, label and logo repair in Fix detail, object replacement in Interior design, and object removal in Real estate. How each editing mode treats the rest of the image Mode What you provide Region Ideogram edits Image you get back Outside the edited region Whole image You send a prompt, with or without a mask. In the API, that is context_window=none, or auto with no mask. The whole image An image up to 4,194,304 pixels keeps its size. Through the API, a larger image comes back scaled down to fit, so 8192 × 8192 returns at 2048 × 2048. In the app, an image too large to edit whole always uses an edit window. No region is held back, so review the whole image. Automatic window You send a mask. In the app, choose Auto in the mask editor. In the API, use context_window=auto, which is the default. Ideogram fits a window around the mask, at most 4,194,304 pixels in area. If the mask covers more than that, the edit falls back to the whole image. The original width and height Designed to come back as you sent it Window you set You place a window, with an optional mask inside it. In the app, choose Manual in the mask editor. In the API, send context_window=y_min,x_min,y_max,x_max. The window you set The original width and height Designed to come back as you sent it Inside the window, the mask marks the pixels that may change. Compare the result with the original at full size before you publish it. Writing the edit How to write an edit instruction The instruction is the only place you say what the new pixels should show. These patterns come from the edits in the examples on this page. Name the thing and the change Start with the object in the masked area and what it should become. Change the three brass pendant shades to matte black works better than make it darker, because the model knows both the target and the result. Say what must stay the same List the details that should survive the edit. Change the suede heel panel to burnt orange suede. Keep the stitching, the white leather, and the lighting exactly as they are. tells the model which neighbouring parts to leave alone. Describe material and finish, not only color Colors read differently on leather, silk or wool. Change the camel wool overcoat to a deep forest green wool. Keep its cut, texture, buttons keeps the fabric believable while the color changes. For removals, say what continues behind When something should disappear, describe the surface that replaces it: Remove the potted fig tree completely. Continue the bare white wall, the skirting board, and the oak floor behind it. Quote exact wording for text When lettering must read a certain way, spell it out and point to a reference: Repair the brand name on the label so it reads [brand name] in clean black serif capitals with even letter spacing, exactly like the reference image. Make one change per edit Two changes in one instruction compete for the same pixels. Run one edit, check it, then start the next edit from the result. Masking How to mask the part of the image to change The mask decides which pixels may change. A good mask is the difference between a clean edit and a visible patch. Cover everything that should change The mask marks the pixels that may change. Paint the whole object, including a strap, a cord or a reflection that belongs to it, so no old color or shape is left at the edge. Leave a little margin A slightly generous mask gives the model room to blend the new pixels into the surroundings. A mask traced tightly to the edge can leave a visible seam. Keep what must not change outside the mask Hands, faces, labels and product logos next to the edit stay safer outside the mask. If a detail must stay exactly as it is, do not paint over it. Use Magic wand for one part of a product Magic wand selects one part with a click, such as a panel of a shoe. Add Brush strokes for anything it misses, and Rectangle or Lasso for a free area such as an empty table top. Mask small, edit large photos at full size The area you paint can be small. With a context window, Ideogram works on a region of up to 4.2 megapixels around the mask, so a detail in a large photo is edited at its original pixels. Reference images Replace an object in a photo with the real one Words describe a color well but a specific product or logo poorly. Next to the instruction, add images that show the result you want, such as a packshot of the trainer you sell or the correct label. Precise Edit takes up to four reference images, or three when a mask is set, because the mask uses one slot. Refer to the reference in the instruction, as the examples do: Replace the grey trainers with the white trainers from the reference image, on both feet, matching their pose, angle, and the street light. The reference guides the edit and is never edited itself. The Trainer swap and label repairs below were made this way. Quality and results Choose the quality and the number of results Quality offers Very low, Low, Medium and High, with Medium selected to start. Lower settings are useful for trying an idea; use a higher one for fine lettering, fabric texture or a result you will print. Number of images runs the same edit from one to eight times, so you can pick the best of several. Each result uses credits, and Apply edit shows the total before it runs. With and without a context window The context window also improves editing quality in fine detail. Without a context window The 4K original is scaled down to edit, so the result comes back at 2K. Compare the full source and the fix without a context window Compare the zoomed label of the source and the fix without a context window With a context window Only the window is edited, so the result keeps the original 4K resolution. Compare the full source and the fix with a context window Compare the zoomed label of the source and the fix with a context window Prompt Repair the lowercase [brand name] lettering on the woven label so every letter is separate and legible i