Most marketplace image failures are described as visual problems: the crop is wrong, the background is off-white, or a badge is in the wrong place. For an engineering team, they are often contract failures discovered too late.
The upload payload has metadata. The marketplace has rules. The image-processing step has another set of assumptions. When those three systems disagree, someone discovers the mismatch in a seller dashboard after the rest of the batch has already been processed.
A better boundary is a preflight contract: load the marketplace rules as data, check the metadata you can verify mechanically, and return a deterministic result before an image enters the publishing pipeline.
Why hard-coded checks become stale
Marketplace requirements are not static. A platform can change the minimum upload size, clarify which background is accepted, or add a category-specific rule.…