Trường · Person Portrait
Trường · Person Portrait · image.personPortrait. Phương thức tạo · Ví dụ
image.personPortrait
Cài đặt trình tạo
Tạo dữ liệu để xem kết quả ở đây.
Tham số & Ví dụ
Generates a random square portrait (avatar) of a person. These are static images of fictional people created by an AI, Stable Diffusion 3. The image URLs are served via the JSDelivr CDN and subject to their terms of use.
image.personPortrait(options?: { sex?, size? })- options
- Options for generating an AI avatar.
- options.sex
- The sex of the person for the avatar. Can be 'female' or 'male'. If not provided or 'generic', defaults to a random selection.
- options.size
- The size of the image. Can be 512, 256, 128, 64 or 32. If not provided, defaults to 512.
Ví dụ
"https://cdn.jsdelivr.net/gh/faker-js/assets-person-portrait/male/512/13.jpg"Dùng dữ liệu tổng hợp trong môi trường kiểm thử.