← ClaudeAtlas

inpainting-product-fixeslisted

Repair specific regions of a product image with edit_image inpainting and erasing via masked regions, instead of regenerating the whole shot. Use whenever the user wants to remove an object, fix a blemish, repair a bad edge, erase a reflection, or change one part of an image.
apimageorg/apimage-skills · ★ 0 · AI & Automation · score 72
Install: claude install-skill apimageorg/apimage-skills
# Inpainting and Erasing `edit_image` supports **inpainting and erasing via masked regions**. That means you can fix one part of an image and leave the rest untouched — which is almost always what you actually want. The alternative is regenerating, which fixes the problem and changes everything else you liked. ## When to inpaint rather than regenerate | Problem | Inpaint | |---|---| | A stray object in the frame | Erase it | | A halo left by background removal | Repair the edge | | Dust, scratch, fingerprint on the product | Remove it | | An unwanted reflection | Erase or replace | | A cable, tag or sticker that shouldn't be there | Erase | | A blemish on a model's skin | Retouch | | A distorted small area from a generation | Repair locally | | A logo you don't have rights to in the background | Erase | **Anything localised.** If the fault occupies less than roughly a quarter of the frame, inpainting is the cheaper and safer route. Regenerate instead when the composition, angle or lighting is wrong — those aren't local problems. See `product-relighting` and `camera-angle-variation`. ## The call ``` edit_image( image="<the image>", mask="<mask marking the region to change>", prompt="Clean pale oak surface continuing the existing wood grain, " "matching the surrounding light and shadow. Nothing else." ) ``` Two things decide the result: the mask, and how specific the prompt is about what should be *there instead*. ## Mask discipline The mask matters mo