sharp now decodes truncated JPEGs (failOn: "none") when making the thumb and preview, and when composition and jersey reads open the original.
A file that is not an image still fails (no width/height).
Based on current main (1fa97ca). Merge only after CI is green. This PR does not deploy by itself.
Test plan
CI typescript job (Postgres photoreport_test) is green
A truncated JPEG still gets a preview and is not dropped only because sharp warned
## Summary
- sharp now decodes truncated JPEGs (`failOn: "none"`) when making the thumb and preview, and when composition and jersey reads open the original.
- A file that is not an image still fails (no width/height).
- Based on current main (`1fa97ca`). Merge only after CI is green. This PR does not deploy by itself.
## Test plan
- [ ] CI typescript job (Postgres `photoreport_test`) is green
- [ ] A truncated JPEG still gets a preview and is not dropped only because sharp warned
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
failOn: "none") when making the thumb and preview, and when composition and jersey reads open the original.1fa97ca). Merge only after CI is green. This PR does not deploy by itself.Test plan
photoreport_test) is greenauto-approve: CI success (gitea_auto_approve_open_prs_once.py)
auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
auto-approve: CI success (gitea_auto_approve_open_prs_once.py)