The card's attachment gallery and the minicard cover downloaded every image
at full size. A raster image now has a thumbnail route: a WebP of at most
512 pixels, made with sharp under the GIF converter's input limits and kept
in a bounded in-memory cache keyed by file version. It is the attachment
route itself, after board access, the download block and limit, and the
storage read flag, so a thumbnail is readable exactly when the original is;
it is cached privately only. SVG and non-images have none, and a damaged
image redirects to its original. The gallery and cover use it.
Fixes#3275,
Thanks to blaggacao and xet7 !