diff options
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'}`. |
