Skip to content

Add WebP/AVIF support detection and serve appropriate image formats #939

Description

@nanaf6203-bit

Problem

All users get the same image format regardless of browser capabilities. WebP can reduce image sizes by 25-35%.

Expected Outcome

Images served in best supported format based on Accept header.

Acceptance Criteria

  • WebP variant for all uploaded images
  • Content negotiation via Accept header
  • Vary: Accept header on image responses
  • Fallback to original format

Files Affected

src/properties/property-images.service.ts, src/cache/cache-headers.interceptor.ts

Difficulty

Easy

Estimated Effort

Small (2-3 days)

Labels

performance, images, enhancement

Metadata

Metadata

Assignees

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