Background Images: Enhancements
AJGeel opened this issue · comments
Arthur Geel commented
Would be a nice follow-up feature:
- Allowing specifying resolution. Currently, the only quality is
1920 x 1080
.- We could add a 4K:
3840 x 2160
- We could also add
1536 x 864
and1366 x 768
.
- We could add a 4K:
Example API call:
GET /api/background?theme=snazzy&quality=4k
Ideas on implementing:
- We could update the Figma exports to resize the images to the specified resolutions, but not fully sure since they may be different ratios.
- We could manually export the largest image, then run a dev script that scales (and optimizes) all images to these sizes.
- Perhaps there is a way to leverage
next/image
in this.
Originally posted by @AJGeel in #1 (comment)