/sub-packages/product-photo-maker/CLAUDE.md
CLAUDE.md at /sub-packages/product-photo-maker/CLAUDE.md
Path: sub-packages/product-photo-maker/CLAUDE.md
product-photo-maker
CLI tool for generating standardized 1600x1600 product photos with ML-based background removal.
Usage
node ./sub-packages/product-photo-maker/bin/make-product-photo.mjs <input-image> [--output <dir>]
- Supports multiple input files
--output/-o: override output directory (default:__inbox/prod-imgs-exported/)--shadow: add directional shadow with upper-left light source (grounded by default)--float: use floating shadow with projected spread (for modular synth panels; requires--shadow)--with-bg <path>: use custom background image instead of default fabric texture--no-bg-removal: skip ML background removal (use image as-is)--no-trim: skip trimming after background removal- Output: 1600x1600 JPEG, product centered on default fabric texture background
Dependencies
@imgly/background-removal-node— ML-based background removal (no API key needed)sharp— image resizing and compositingchalk— colored CLI output