Photo Compositor
Lift a person, product or pet out of one photo with a few clicks and blend it into another scene with shadows and colour matching, all on your device.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Choose the background
Press Choose background photo and pick the scene.
- 2Open the source
Press Photo to cut from and pick the photo with the object.
- 3Click the object
Add green points and, if needed, red points until the mask fits.
- 4Add as layer
Set Edge feather and press Add cut-out as layer.
- 5Blend it in
Move, scale, rotate, set shadows, colour match and brightness.
- 6Export
Press PNG to download the composition.
About this tool
Putting an object from one photo into another usually means careful masking in a heavy desktop editor. This compositor shortens that to a few clicks. You start with the background photo, then open a second photo and click the object you want. A compact Segment Anything model, SlimSAM-77, runs in your browser and proposes a mask around it; green points add areas, red points or Shift-clicks remove them, and Undo point takes back the last click. An edge feather slider softens the cut so it does not look pasted. Add cut-out as layer places the object on the background as a separate layer, cropped to its outline. From there you work like in a small layer editor: drag to move, use the mouse wheel or a two-finger pinch to scale and rotate, flip it, change its opacity and reorder, duplicate, hide or delete layers. To make the object sit in the scene, each layer has a soft drop shadow, a contact shadow ellipse where it touches the ground, a colour match that pulls its colours toward the background area behind it, and a brightness control. The finished composition exports as a PNG at the background's resolution, up to 2000 pixels.
How the click selection works
The first click on a new photo loads the model files (about 14 MB, served from this site and cached by the browser) and computes an image embedding once; after that every extra point only runs the small decoder and answers in well under a second on most laptops. The model returns three candidate masks and the tool keeps the one with the highest predicted quality, which is shown as a percentage. Objects with clear edges against their background need one or two points; hair, fur and thin parts may need a few more positive points and some negative ones.
Making it believable
Colour match measures the mean and spread of each colour channel in the layer and in the background area under it, then moves the layer toward the background at the strength you choose, a version of the classic Reinhard colour transfer. Fifty percent is a good start; more makes the object take on the light of the scene but can wash out strong colours. The drop shadow uses the object's own silhouette with adjustable offset, blur and darkness, while the contact shadow is a soft ellipse under the bounding box that grounds objects standing on a floor or table.
Keyboard and touch
Arrow keys nudge the selected layer by one pixel, or ten with Shift. The square bracket keys rotate by one degree, plus and minus scale by three percent, and Delete removes the layer. On a phone, drag with one finger and pinch with two to scale and turn the layer.
Limits
The selection model works on a copy of up to 1600 pixels, so very fine strands of hair can look blocky after feathering. Lighting direction is not changed: an object lit from the left will still look lit from the left. Shadows are approximations, not a 3D render. On phones with little memory the model may fail to load; you can still use Use whole photo or a transparent PNG. Your photos never leave the browser, and the composition draft is kept in this browser only while it fits in local storage.
Worked example
A shop owner places a 1200 pixel product shot of a ceramic vase on a photo of a wooden shelf (1800 by 1200). Two clicks on the vase give a selection score of 96 percent; feather 3 pixels and add it as a layer. Scale 42 percent, drop shadow at X 14, Y 10, blur 24, darkness 35 percent, contact shadow width 90 percent and colour match 60 percent make it sit naturally. The PNG export is 1800 by 1200 pixels.
Quick facts
- Category: Images
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: Segment Anything (SlimSAM-77, Apache-2.0) and HTML Canvas 2D
Frequently asked questions
Which AI model selects the object?
SlimSAM-77, a pruned Segment Anything model under the Apache-2.0 licence. It is served from this site and runs locally with ONNX Runtime Web.
Are my photos uploaded to a server?
No. Only the model files are downloaded; your photos are processed entirely on your device.
Can I cut out more than one object?
Yes. Clear the points, click the next object and add it as another layer, or open another source photo.
How do I remove part of a selection?
Switch to Remove area, or hold Shift, and click the part that should not be included.
Does the tool change the lighting of the object?
It matches colour and brightness statistics, but it does not relight the object or change shadow direction inside it.
What resolution is the export?
The background photo's size, up to 2000 pixels on the long side.
