ResultMedia describes presentation; it does not download, resize or generate files during a search request.
Use the hydrated resource record
HasAvatar and HasName methods. It uses the existing record object instead of looking the user up again for every result.
Attach media to a custom result
identity distinguishes records that share the same URL. Without it, custom result identity falls back to category plus URL. Native resource results already carry stable record identities.
Rectangular images and responsive thumbnails
avatar($url, $thumbnailUrl) and image($url, $thumbnailUrl) accept an optional preferred thumbnail URL. Allowed values are HTTP(S) URLs or absolute local paths beginning with a single /; protocol-relative and control-character URLs are rejected.
Initials and failed images
mediaUsing() callback.
Optional Gravatar
mp, identicon, monsterid, wavatar, retro, robohash, blank. Prefer first-party thumbnail URLs when external avatar requests are inappropriate for your application.