Ipzz-286 Fix Guide

const metadata = await sharp(res.body).metadata(); expect(metadata.width).toBeLessThanOrEqual(150); expect(metadata.format).toBe('webp'); );

| Item | Description | |------|-------------| | | IPZZ‑286 | | Type | Feature request / enhancement (could also be a bug fix depending on your project’s taxonomy) | | Owner | [Insert team or individual] | | Target Release | vX.Y (e.g., v2.5 for the next sprint) | | Priority | High – impacts user workflow / performance / security | | Summary | Add a configurable “smart‑preview” thumbnail generator for media assets stored in the IPZZ content service. | | Labels | frontend , backend , performance , usability | IPZZ-286

Replace node-fetch with the native fetch (Node ≥ 18) once you upgrade. const metadata = await sharp(res