You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -11,7 +12,7 @@ import { ModuleBase } from '../../internal/module-base';
11
12
*
12
13
* For a random placeholder image containing only solid color and text, use [`urlPlaceholder()`](https://fakerjs.dev/api/image.html#urlplaceholder) (uses a third-party service) or [`dataUri()`](https://fakerjs.dev/api/image.html#datauri) (returns a SVG string).
13
14
*
14
-
* For a random user avatar image, use [`avatar()`](https://fakerjs.dev/api/image.html#avatar).
15
+
* For a random user avatar image, use [`avatar()`](https://fakerjs.dev/api/image.html#avatar), or [`personPortrait()`](https://fakerjs.dev/api/image.html#personportrait) which has more control over the size and sex of the person.
15
16
*
16
17
* If you need more control over the content of the images, you can pass a `category` parameter e.g. `'cat'` or `'nature'` to [`urlLoremFlickr()`](https://fakerjs.dev/api/image.html#urlloremflickr) or simply use [`faker.helpers.arrayElement()`](https://fakerjs.dev/api/helpers.html#arrayelement) with your own array of image URLs.
17
18
*/
@@ -27,7 +28,11 @@ export class ImageModule extends ModuleBase {
27
28
*/
28
29
avatar(): string{
29
30
// Add new avatar providers here, when adding a new one.
0 commit comments