mlabs-haskell / nft-marketplace-server

2 stars 2 forks source link

Add multiple image sizes for previews #11

Open nrutledge opened 2 years ago

nrutledge commented 2 years ago

Currently, there is only a single image size that is persisted/fetched. However, the frontend allows users to infinitely scroll through images and fetching full sized images is slow. It also puts greater demand on the server.

At least one separate copy of each image should be persisted at a preview image size (e.g., 250px max width/height). Though we might want to consider larger preview images for high-density displays.

Each image record can then include a link to the preview image(s).

Related to #10