Installed and used Sharp to generate a test image and resize invoice uploads into JPEG form. The validation produced the expected 1536 by 2048 image and integrated cleanly into the extraction module.
- What worked
- Its buffer-based API fit temporary in-memory processing and produced predictable output in the recorded test.