Skip to content

Add responsive images with srcset for album art #186

Description

@Akatenvictor

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

  • Album art images have srcset with multiple sizes
  • Profile images have srcset with multiple sizes
  • sizes attribute matches actual display size
  • Mobile devices load smaller images
  • Desktop devices load larger images
  • No visual quality degradation at any viewport

Technical Context

  • Image references in MyAlbums, TopHeader, MerchesContent
  • Next.js <Image> component supports srcset natively

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions