Nodes/ComfyUI-Addoor/AD Mockup Maker
ComfyUI Node

AD Mockup Maker

Drop an image onto a background with rounded corners and a shadow

By Eagle-CN·Created 2 years ago·Updated about a year ago· 75
AD Mockup Maker
  • overlay_image
  • background_image
  • watermark
  • mask
  • image
target_width512
target_height512
corner_radius0
offset_x0
offset_y0
blur_radius10.0
SSAA2
methodlanczos

Composites one image onto another the way a product mockup does it: resized to a target size, rounded corners, positioned where you want, with a soft drop shadow underneath so it sits on the scene instead of being pasted flat over it. Think a screenshot on a laptop, artwork on a wall, a design on a card - the presentation shot, done in one node.

Where it fits

Generating the picture is only half of a lot of jobs; the other half is presenting it. Mockups are the classic case - you've made an image and now you want it shown on a device, a frame, a scene, looking like a real photograph of a real object. Doing that by hand means resize, mask a rounded rectangle, offset, and fake a shadow across several nodes. Mockup Maker rolls all of it into one, which is why it's the node you reach for when the deliverable is "make this look placed, not pasted."

How it works

You give it an overlay_image (the thing being placed) and a background_image (the scene). It scales the overlay to target_width × target_height, optionally rounds the corners with corner_radius, nudges it into position with offset_x/offset_y, and casts a shadow whose softness is set by blur_radius. SSAA is supersampling anti-aliasing - it renders larger and downscales so the rounded edges come out clean instead of jagged. method is the resampling filter for the resize. Optional watermark and mask inputs let you brand the result or constrain the composite.

The inputs that matter

  • overlay_image / background_image - the foreground and the scene.
  • target_width / target_height - the size the overlay is resized to.
  • corner_radius - how rounded the overlay's corners are. 0 for hard corners.
  • offset_x / offset_y - where the overlay sits, relative to center.
  • blur_radius - the drop shadow's softness (default 10). Higher is softer.
  • SSAA - anti-aliasing quality, 1–4. Bump to 2–4 for smoother rounded corners; it costs a little compute.

The single output is image - the finished composite, ready to save or preview.

Common issues

The rounded corners looking jagged is the usual complaint, and the fix is SSAA - set it to 2 or higher so the edges are supersampled clean. If the shadow looks wrong, it's blur_radius: too low reads as a hard black outline, too high washes out. Positioning surprises people because offset_x/offset_y move the overlay relative to its centered default, not from a corner - nudge in small steps and preview. And make sure your overlay and background are sized sensibly relative to each other; a tiny background with a huge target size just crops awkwardly.

Installing ComfyUI-Addoor

ComfyUI-Addoor (葵花宝典) is a utility and image pack from developer Eagle-CN. ComfyUI Manager: Install Custom Nodes → search "ComfyUI-Addoor" → install → restart. Manual:

cd ComfyUI/custom_nodes
git clone https://github.com/Eagle-CN/ComfyUI-Addoor.git
cd ComfyUI-Addoor
pip install -r requirements.txt

Restart and find it under 🌻 Addoor / image.

Category🌻 Addoor/image

Inputs (12)

NameTypeDefaultDescription
overlay_imageIMAGE
background_imageIMAGE
target_widthINT51264–4096
target_heightINT51264–4096
corner_radiusINT00–500
offset_xINT0-1000–1000
offset_yINT0-1000–1000
blur_radiusFLOAT10.00–50
SSAAINT21–4
methodCOMBOlanczos3 options: lanczos, bicubic, bilinear
watermarkoptIMAGE
maskoptMASK

Outputs (1)

NameTypeDescription
imageIMAGE