diff options
| author | José Olórtegui <[email protected]> | 2024-02-11 20:06:33 -0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-11 23:06:33 +0000 |
| commit | 92207b7df15732a61e613a4376a9ce88bd4f7b0f (patch) | |
| tree | 74d96571872e3418674d9c44b84f587efe04efda /docs/guide | |
| parent | 50897d927464e3ad2c54ae54b57f7d068e3a76a5 (diff) | |
| download | faker-92207b7df15732a61e613a4376a9ce88bd4f7b0f.tar.xz faker-92207b7df15732a61e613a4376a9ce88bd4f7b0f.zip | |
refactor(image)!: randomize defaults (#2472)
Co-authored-by: ST-DDT <[email protected]>
Diffstat (limited to 'docs/guide')
| -rw-r--r-- | docs/guide/upgrading_v9/2472.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/guide/upgrading_v9/2472.md b/docs/guide/upgrading_v9/2472.md new file mode 100644 index 00000000..6b4f2b82 --- /dev/null +++ b/docs/guide/upgrading_v9/2472.md @@ -0,0 +1,9 @@ +### Images now have random width, height and other options by default + +`faker.image.url()` now returns an image url with a random width and height by default. To obtain the previous behavior, pass `{width: 640, height: 480}`. + +`faker.image.urlLoremFlickr()` now returns an image url with a random width and height by default. To obtain the previous behavior, pass `{width: 640, height: 480}`. + +`faker.image.urlPicsumPhotos()` now returns an image url with a random width and height by default, additionally images may be converted to grayscale and blurred at random. To obtain the previous behavior, pass `{width: 640, height: 480, blur: 0, grayscale: false}` + +`faker.image.dataUri()` now returns an image url with a random width and height by default, additionally the type of the image is now random. To obtain the previous behavior, pass `{width: 640, height: 480, type: 'svg-uri'}`. |
