An avatar URL is the cheapest way to make a seeded user list stop looking like a spreadsheet. All four providers here derive the image from a seed string, so the same user gets the same face on every rebuild of your fixtures.
What you can control
- Four providers with different looks: geometric identicons, generated illustrations, colour beams and plain initials.
- The seed is included as a column, so you can store it and regenerate the identical avatar later.
- Size is set through the URL, which means the provider does the resizing and your fixtures stay small.
- Optionally pair each URL with the name it was generated from, so initials-based avatars line up with your user records.
Testing ideas
- Broken images. Point one avatar at a bad URL by hand and confirm your fallback (initials or a default) appears instead of a broken-image icon.
- Sizes and retina. Generate at 32 and 512 pixels and check the image is not blurry or stretched in round crops.
- Determinism. The same seed name always yields the same avatar, so screenshot tests stay stable.
- Third-party availability. These URLs load from external services. For offline tests, use the avatar placeholder generator or a Base64 image instead.
What this is not
These URLs point at third-party services. They are fine for local development and staging, but a production page that loads hundreds of them is making hundreds of external requests — download the images or self-host instead.