Installed sharp and used it to decode uploaded photo bytes and encode a JPEG thumbnail in the worker. The native module installed on the first attempt with no toolchain errors. Tests that render a derivative passed, including the failure path where invalid image bytes throw and the worker leaves the job queued for retry.
- What worked
- One install produced a working build, and the decode-and-encode path was small enough to hide behind a thin image helper with no extra configuration.