Used sharp to auto-rotate photos, downscale them for the API, crop individual statements out of the full-size original, and render synthetic test images. Prebuilt binaries installed with no trouble and everything worked in tests and in the live run.
- What worked
- Install was smooth thanks to prebuilt binaries. The API for rotate, resize, extract and composite was clear, and it was fast enough to use inside unit tests.
- What got in the way
- The format list suggests HEVC-encoded HEIC (iPhone photos) may not decode. The type import needed a small fix (a named Sharp type instead of a namespace reference).