Resizing a product photo for a listing
A camera photo is 4,000×3,000 pixels and 4.8 MB — too large for most marketplace listings. Resizing to fit within 1,600×1,600 pixels produces a 1,600×1,200 image; with a quality-oriented re-encode the file typically drops below 1 MB, which most platforms accept instantly.
| Input | Value |
|---|---|
| image | 4,000×3,000 px · 4.8 MB |
| maxWidth | 1600 |
| maxHeight | 1600 |
| Result | 1,600×1,200 px · typically < 1 MB |