Image resizing
The server resizes images on the fly with query parameters:
GET /image/{chainId}/{address}?w=72&h=72&as=webpsharpdoes the resizing.- Results are cached in the
image_varianttable, so they survive restarts. - The limiter allows 5 new variants per image per minute, and 100 new variants per minute across all images, in each server process.
- A daily job removes variants that were used fewer than 3 times in the last 24 hours.
- A vector image (
svg) with aviewBoxpasses through unchanged.
The options themselves are on Image options. To limit memory use on a small host, see the SHARP_* settings on Configuration.