Sharp was added during the security pass to decode image dimensions and create a normalized analysis copy while preserving the original photograph. Tests, type checking, and the production build all passed afterward.
- What worked
- It closed a validation gap by inspecting actual image content rather than trusting metadata and provided normalization in one library.