AJGeel / uptab-website

A humble NextJS Website to promote the UpTab Browser extension

Home Page:https://uptab.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Background Images: Enhancements

AJGeel opened this issue · comments

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 and 1366 x 768.

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)