For a Node.js marketplace backend, create a named transformation during setup and apply it to every upload when the listing has a known display contract. Choose upload-time image optimization for that contract; reserve on-demand processing for representations that cannot be decided before serving. For a developer tool preparing listing images, this determines where processing belongs and what “ready” should mean.
TL;DR: In a Node.js backend, create the named transformation once in a setup step, verify its presence in CI, and reference its name from every upload path. Keep creation out of request handling. Named transformations centralize sizing; deployment establishes the definition, while ingestion applies it.
The lens here comes from communication backend design: accepting work and making it usable are separate events. An image pipeline needs that same precision. A source arriving is not sufficient evidence that a listing image is ready to serve.…