What
Implement responsive images using srcset and sizes attributes for all album art and profile images to serve appropriately sized images for different viewports.
Why
Serving full-resolution images on mobile wastes bandwidth and slows page loads. Responsive images ensure each device gets an optimally sized image, improving performance and reducing data costs for mobile users.
Scope
In scope:
- Configure image sizes for different breakpoints (thumbnail, small, medium, large)
- Add
srcset attribute to album art and profile images
- Add
sizes attribute to indicate display sizes
- Generate multiple image sizes at upload time or on-demand
- Fallback to single image for browsers without srcset support
Out of scope:
- WebP/AVIF format conversion
- Image CDN setup
- Image compression at upload
- Lazy loading (separate issue)
Acceptance Criteria
Technical Context
- Image references in MyAlbums, TopHeader, MerchesContent
- Next.js
<Image> component supports srcset natively
What
Implement responsive images using
srcsetandsizesattributes for all album art and profile images to serve appropriately sized images for different viewports.Why
Serving full-resolution images on mobile wastes bandwidth and slows page loads. Responsive images ensure each device gets an optimally sized image, improving performance and reducing data costs for mobile users.
Scope
In scope:
srcsetattribute to album art and profile imagessizesattribute to indicate display sizesOut of scope:
Acceptance Criteria
srcsetwith multiple sizessrcsetwith multiple sizessizesattribute matches actual display sizeTechnical Context
<Image>component supports srcset natively