From 1f4a482fd962dd76f73466bb221fd9b462c3ca11 Mon Sep 17 00:00:00 2001 From: Shinigami92 Date: Thu, 23 Mar 2023 14:59:52 +0100 Subject: [PATCH 1/3] fix(image): use seeded picsum --- src/modules/image/index.ts | 16 ++++----- test/__snapshots__/image.spec.ts.snap | 50 +++++++++++++-------------- test/image.spec.ts | 2 +- 3 files changed, 33 insertions(+), 35 deletions(-) diff --git a/src/modules/image/index.ts b/src/modules/image/index.ts index 17d076ccd52..7b0d42f7232 100644 --- a/src/modules/image/index.ts +++ b/src/modules/image/index.ts @@ -189,12 +189,12 @@ export class ImageModule { * @param options.blur Whether the image should be blurred. Defaults to `false`. * * @example - * faker.image.urlPicsumPhotos() // 'https://picsum.photos/id/241/640/480' - * faker.image.urlPicsumPhotos({ width: 128 }) // 'https://picsum.photos/id/241/128/480' - * faker.image.urlPicsumPhotos({ height: 128 }) // 'https://picsum.photos/id/241/640/128' - * faker.image.urlPicsumPhotos({ grayscale: true }) // 'https://picsum.photos/id/241/640/480?grayscale' - * faker.image.urlPicsumPhotos({ blur: 4 }) // 'https://picsum.photos/id/241/640/480?blur=4' - * faker.image.urlPicsumPhotos({ blur: 4, grayscale: true }) // 'https://picsum.photos/id/241/640/480?grayscale&blur=4' + * faker.image.urlPicsumPhotos() // 'https://picsum.photos/seed/241/640/480' + * faker.image.urlPicsumPhotos({ width: 128 }) // 'https://picsum.photos/seed/241/128/480' + * faker.image.urlPicsumPhotos({ height: 128 }) // 'https://picsum.photos/seed/241/640/128' + * faker.image.urlPicsumPhotos({ grayscale: true }) // 'https://picsum.photos/seed/241/640/480?grayscale' + * faker.image.urlPicsumPhotos({ blur: 4 }) // 'https://picsum.photos/seed/241/640/480?blur=4' + * faker.image.urlPicsumPhotos({ blur: 4, grayscale: true }) // 'https://picsum.photos/seed/241/640/480?grayscale&blur=4' * * @since 8.0.0 */ @@ -228,9 +228,7 @@ export class ImageModule { ): string { const { width = 640, height = 480, grayscale = false, blur } = options; - let url = `https://picsum.photos/id/${this.faker.number.int( - 1000 - )}/${width}/${height}`; + let url = `https://picsum.photos/seed/${this.faker.number.int()}/${width}/${height}`; const hasValidGrayscale = grayscale === true; const hasValidBlur = typeof blur === 'number' && blur >= 1 && blur <= 10; diff --git a/test/__snapshots__/image.spec.ts.snap b/test/__snapshots__/image.spec.ts.snap index 77b5a029739..4e04d521359 100644 --- a/test/__snapshots__/image.spec.ts.snap +++ b/test/__snapshots__/image.spec.ts.snap @@ -26,19 +26,19 @@ exports[`image > 42 > urlLoremFlickr > with width 1`] = `"https://loremflickr.co exports[`image > 42 > urlLoremFlickr > with width and height 1`] = `"https://loremflickr.com/128/128?lock=3373557438480384"`; -exports[`image > 42 > urlPicsumPhotos > noArgs 1`] = `"https://picsum.photos/id/374/640/480"`; +exports[`image > 42 > urlPicsumPhotos > noArgs 1`] = `"https://picsum.photos/seed/3373557438480384/640/480"`; -exports[`image > 42 > urlPicsumPhotos > with all options 1`] = `"https://picsum.photos/id/374/128/128?grayscale&blur=4"`; +exports[`image > 42 > urlPicsumPhotos > with all options 1`] = `"https://picsum.photos/seed/3373557438480384/128/128?grayscale&blur=4"`; -exports[`image > 42 > urlPicsumPhotos > with blur 1`] = `"https://picsum.photos/id/374/640/480?blur=6"`; +exports[`image > 42 > urlPicsumPhotos > with blur 1`] = `"https://picsum.photos/seed/3373557438480384/640/480?blur=6"`; -exports[`image > 42 > urlPicsumPhotos > with blur and grayscale 1`] = `"https://picsum.photos/id/374/640/480?grayscale&blur=3"`; +exports[`image > 42 > urlPicsumPhotos > with blur and grayscale 1`] = `"https://picsum.photos/seed/3373557438480384/640/480?grayscale&blur=3"`; -exports[`image > 42 > urlPicsumPhotos > with height 1`] = `"https://picsum.photos/id/374/640/128"`; +exports[`image > 42 > urlPicsumPhotos > with height 1`] = `"https://picsum.photos/seed/3373557438480384/640/128"`; -exports[`image > 42 > urlPicsumPhotos > with width 1`] = `"https://picsum.photos/id/374/128/480"`; +exports[`image > 42 > urlPicsumPhotos > with width 1`] = `"https://picsum.photos/seed/3373557438480384/128/480"`; -exports[`image > 42 > urlPicsumPhotos > with width and height 1`] = `"https://picsum.photos/id/374/128/128"`; +exports[`image > 42 > urlPicsumPhotos > with width and height 1`] = `"https://picsum.photos/seed/3373557438480384/128/128"`; exports[`image > 42 > urlPlaceholder > noArgs 1`] = `"https://via.placeholder.com/1498x3186/e4abdd/39321a.webp?text=veniam%20unde%20fugit"`; @@ -66,13 +66,13 @@ exports[`image > 1211 > avatarGitHub 1`] = `"https://avatars.githubusercontent.c exports[`image > 1211 > avatarLegacy 1`] = `"https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/1160.jpg"`; -exports[`image > 1211 > url > noArgs 1`] = `"https://picsum.photos/id/459/640/480"`; +exports[`image > 1211 > url > noArgs 1`] = `"https://picsum.photos/seed/4134441414819840/640/480"`; -exports[`image > 1211 > url > with height 1`] = `"https://picsum.photos/id/459/640/128"`; +exports[`image > 1211 > url > with height 1`] = `"https://picsum.photos/seed/4134441414819840/640/128"`; -exports[`image > 1211 > url > with width 1`] = `"https://picsum.photos/id/459/128/480"`; +exports[`image > 1211 > url > with width 1`] = `"https://picsum.photos/seed/4134441414819840/128/480"`; -exports[`image > 1211 > url > with width and height 1`] = `"https://picsum.photos/id/459/128/128"`; +exports[`image > 1211 > url > with width and height 1`] = `"https://picsum.photos/seed/4134441414819840/128/128"`; exports[`image > 1211 > urlLoremFlickr > noArgs 1`] = `"https://loremflickr.com/640/480?lock=8363366036799488"`; @@ -86,19 +86,19 @@ exports[`image > 1211 > urlLoremFlickr > with width 1`] = `"https://loremflickr. exports[`image > 1211 > urlLoremFlickr > with width and height 1`] = `"https://loremflickr.com/128/128?lock=8363366036799488"`; -exports[`image > 1211 > urlPicsumPhotos > noArgs 1`] = `"https://picsum.photos/id/929/640/480"`; +exports[`image > 1211 > urlPicsumPhotos > noArgs 1`] = `"https://picsum.photos/seed/8363366036799488/640/480"`; -exports[`image > 1211 > urlPicsumPhotos > with all options 1`] = `"https://picsum.photos/id/929/128/128?grayscale&blur=4"`; +exports[`image > 1211 > urlPicsumPhotos > with all options 1`] = `"https://picsum.photos/seed/8363366036799488/128/128?grayscale&blur=4"`; -exports[`image > 1211 > urlPicsumPhotos > with blur 1`] = `"https://picsum.photos/id/929/640/480?blur=6"`; +exports[`image > 1211 > urlPicsumPhotos > with blur 1`] = `"https://picsum.photos/seed/8363366036799488/640/480?blur=6"`; -exports[`image > 1211 > urlPicsumPhotos > with blur and grayscale 1`] = `"https://picsum.photos/id/929/640/480?grayscale&blur=3"`; +exports[`image > 1211 > urlPicsumPhotos > with blur and grayscale 1`] = `"https://picsum.photos/seed/8363366036799488/640/480?grayscale&blur=3"`; -exports[`image > 1211 > urlPicsumPhotos > with height 1`] = `"https://picsum.photos/id/929/640/128"`; +exports[`image > 1211 > urlPicsumPhotos > with height 1`] = `"https://picsum.photos/seed/8363366036799488/640/128"`; -exports[`image > 1211 > urlPicsumPhotos > with width 1`] = `"https://picsum.photos/id/929/128/480"`; +exports[`image > 1211 > urlPicsumPhotos > with width 1`] = `"https://picsum.photos/seed/8363366036799488/128/480"`; -exports[`image > 1211 > urlPicsumPhotos > with width and height 1`] = `"https://picsum.photos/id/929/128/128"`; +exports[`image > 1211 > urlPicsumPhotos > with width and height 1`] = `"https://picsum.photos/seed/8363366036799488/128/128"`; exports[`image > 1211 > urlPlaceholder > noArgs 1`] = `"https://via.placeholder.com/3714x1836/db42f0/e3f4a9.jpeg?text=consequuntur%20quidem%20nobis"`; @@ -146,19 +146,19 @@ exports[`image > 1337 > urlLoremFlickr > with width 1`] = `"https://loremflickr. exports[`image > 1337 > urlLoremFlickr > with width and height 1`] = `"https://loremflickr.com/128/128?lock=2360108468142080"`; -exports[`image > 1337 > urlPicsumPhotos > noArgs 1`] = `"https://picsum.photos/id/262/640/480"`; +exports[`image > 1337 > urlPicsumPhotos > noArgs 1`] = `"https://picsum.photos/seed/2360108468142080/640/480"`; -exports[`image > 1337 > urlPicsumPhotos > with all options 1`] = `"https://picsum.photos/id/262/128/128?grayscale&blur=4"`; +exports[`image > 1337 > urlPicsumPhotos > with all options 1`] = `"https://picsum.photos/seed/2360108468142080/128/128?grayscale&blur=4"`; -exports[`image > 1337 > urlPicsumPhotos > with blur 1`] = `"https://picsum.photos/id/262/640/480?blur=6"`; +exports[`image > 1337 > urlPicsumPhotos > with blur 1`] = `"https://picsum.photos/seed/2360108468142080/640/480?blur=6"`; -exports[`image > 1337 > urlPicsumPhotos > with blur and grayscale 1`] = `"https://picsum.photos/id/262/640/480?grayscale&blur=3"`; +exports[`image > 1337 > urlPicsumPhotos > with blur and grayscale 1`] = `"https://picsum.photos/seed/2360108468142080/640/480?grayscale&blur=3"`; -exports[`image > 1337 > urlPicsumPhotos > with height 1`] = `"https://picsum.photos/id/262/640/128"`; +exports[`image > 1337 > urlPicsumPhotos > with height 1`] = `"https://picsum.photos/seed/2360108468142080/640/128"`; -exports[`image > 1337 > urlPicsumPhotos > with width 1`] = `"https://picsum.photos/id/262/128/480"`; +exports[`image > 1337 > urlPicsumPhotos > with width 1`] = `"https://picsum.photos/seed/2360108468142080/128/480"`; -exports[`image > 1337 > urlPicsumPhotos > with width and height 1`] = `"https://picsum.photos/id/262/128/128"`; +exports[`image > 1337 > urlPicsumPhotos > with width and height 1`] = `"https://picsum.photos/seed/2360108468142080/128/128"`; exports[`image > 1337 > urlPlaceholder > noArgs 1`] = `"https://via.placeholder.com/1048x2242/346ba0/75bd57.webp?text=tempora%20tempore%20aliquam"`; diff --git a/test/image.spec.ts b/test/image.spec.ts index a0a6d4eff70..74327c54416 100644 --- a/test/image.spec.ts +++ b/test/image.spec.ts @@ -455,7 +455,7 @@ describe('image', () => { expect(imageUrl).toBeTypeOf('string'); expect(imageUrl).toMatch( - /^https\:\/\/picsum\.photos\/id\/\d+\/\d+\/\d+$/ + /^https\:\/\/picsum\.photos\/seed\/\d+\/\d+\/\d+$/ ); }); }); From aeb7d653f0fd67768953974340bf06a81496dfe8 Mon Sep 17 00:00:00 2001 From: Shinigami92 Date: Thu, 23 Mar 2023 19:21:42 +0100 Subject: [PATCH 2/3] use alphanumeric --- src/modules/image/index.ts | 4 ++- test/__snapshots__/image.spec.ts.snap | 50 +++++++++++++-------------- test/image.spec.ts | 2 +- 3 files changed, 29 insertions(+), 27 deletions(-) diff --git a/src/modules/image/index.ts b/src/modules/image/index.ts index 7b0d42f7232..85a957ecc1a 100644 --- a/src/modules/image/index.ts +++ b/src/modules/image/index.ts @@ -228,7 +228,9 @@ export class ImageModule { ): string { const { width = 640, height = 480, grayscale = false, blur } = options; - let url = `https://picsum.photos/seed/${this.faker.number.int()}/${width}/${height}`; + let url = `https://picsum.photos/seed/${this.faker.string.alphanumeric({ + length: { min: 5, max: 10 }, + })}/${width}/${height}`; const hasValidGrayscale = grayscale === true; const hasValidBlur = typeof blur === 'number' && blur >= 1 && blur <= 10; diff --git a/test/__snapshots__/image.spec.ts.snap b/test/__snapshots__/image.spec.ts.snap index 4e04d521359..676e2975eef 100644 --- a/test/__snapshots__/image.spec.ts.snap +++ b/test/__snapshots__/image.spec.ts.snap @@ -26,19 +26,19 @@ exports[`image > 42 > urlLoremFlickr > with width 1`] = `"https://loremflickr.co exports[`image > 42 > urlLoremFlickr > with width and height 1`] = `"https://loremflickr.com/128/128?lock=3373557438480384"`; -exports[`image > 42 > urlPicsumPhotos > noArgs 1`] = `"https://picsum.photos/seed/3373557438480384/640/480"`; +exports[`image > 42 > urlPicsumPhotos > noArgs 1`] = `"https://picsum.photos/seed/NWbJMBB/640/480"`; -exports[`image > 42 > urlPicsumPhotos > with all options 1`] = `"https://picsum.photos/seed/3373557438480384/128/128?grayscale&blur=4"`; +exports[`image > 42 > urlPicsumPhotos > with all options 1`] = `"https://picsum.photos/seed/NWbJMBB/128/128?grayscale&blur=4"`; -exports[`image > 42 > urlPicsumPhotos > with blur 1`] = `"https://picsum.photos/seed/3373557438480384/640/480?blur=6"`; +exports[`image > 42 > urlPicsumPhotos > with blur 1`] = `"https://picsum.photos/seed/NWbJMBB/640/480?blur=6"`; -exports[`image > 42 > urlPicsumPhotos > with blur and grayscale 1`] = `"https://picsum.photos/seed/3373557438480384/640/480?grayscale&blur=3"`; +exports[`image > 42 > urlPicsumPhotos > with blur and grayscale 1`] = `"https://picsum.photos/seed/NWbJMBB/640/480?grayscale&blur=3"`; -exports[`image > 42 > urlPicsumPhotos > with height 1`] = `"https://picsum.photos/seed/3373557438480384/640/128"`; +exports[`image > 42 > urlPicsumPhotos > with height 1`] = `"https://picsum.photos/seed/NWbJMBB/640/128"`; -exports[`image > 42 > urlPicsumPhotos > with width 1`] = `"https://picsum.photos/seed/3373557438480384/128/480"`; +exports[`image > 42 > urlPicsumPhotos > with width 1`] = `"https://picsum.photos/seed/NWbJMBB/128/480"`; -exports[`image > 42 > urlPicsumPhotos > with width and height 1`] = `"https://picsum.photos/seed/3373557438480384/128/128"`; +exports[`image > 42 > urlPicsumPhotos > with width and height 1`] = `"https://picsum.photos/seed/NWbJMBB/128/128"`; exports[`image > 42 > urlPlaceholder > noArgs 1`] = `"https://via.placeholder.com/1498x3186/e4abdd/39321a.webp?text=veniam%20unde%20fugit"`; @@ -66,13 +66,13 @@ exports[`image > 1211 > avatarGitHub 1`] = `"https://avatars.githubusercontent.c exports[`image > 1211 > avatarLegacy 1`] = `"https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/1160.jpg"`; -exports[`image > 1211 > url > noArgs 1`] = `"https://picsum.photos/seed/4134441414819840/640/480"`; +exports[`image > 1211 > url > noArgs 1`] = `"https://picsum.photos/seed/TMd8Z2F/640/480"`; -exports[`image > 1211 > url > with height 1`] = `"https://picsum.photos/seed/4134441414819840/640/128"`; +exports[`image > 1211 > url > with height 1`] = `"https://picsum.photos/seed/TMd8Z2F/640/128"`; -exports[`image > 1211 > url > with width 1`] = `"https://picsum.photos/seed/4134441414819840/128/480"`; +exports[`image > 1211 > url > with width 1`] = `"https://picsum.photos/seed/TMd8Z2F/128/480"`; -exports[`image > 1211 > url > with width and height 1`] = `"https://picsum.photos/seed/4134441414819840/128/128"`; +exports[`image > 1211 > url > with width and height 1`] = `"https://picsum.photos/seed/TMd8Z2F/128/128"`; exports[`image > 1211 > urlLoremFlickr > noArgs 1`] = `"https://loremflickr.com/640/480?lock=8363366036799488"`; @@ -86,19 +86,19 @@ exports[`image > 1211 > urlLoremFlickr > with width 1`] = `"https://loremflickr. exports[`image > 1211 > urlLoremFlickr > with width and height 1`] = `"https://loremflickr.com/128/128?lock=8363366036799488"`; -exports[`image > 1211 > urlPicsumPhotos > noArgs 1`] = `"https://picsum.photos/seed/8363366036799488/640/480"`; +exports[`image > 1211 > urlPicsumPhotos > noArgs 1`] = `"https://picsum.photos/seed/sTMd8Z2F9G/640/480"`; -exports[`image > 1211 > urlPicsumPhotos > with all options 1`] = `"https://picsum.photos/seed/8363366036799488/128/128?grayscale&blur=4"`; +exports[`image > 1211 > urlPicsumPhotos > with all options 1`] = `"https://picsum.photos/seed/sTMd8Z2F9G/128/128?grayscale&blur=4"`; -exports[`image > 1211 > urlPicsumPhotos > with blur 1`] = `"https://picsum.photos/seed/8363366036799488/640/480?blur=6"`; +exports[`image > 1211 > urlPicsumPhotos > with blur 1`] = `"https://picsum.photos/seed/sTMd8Z2F9G/640/480?blur=6"`; -exports[`image > 1211 > urlPicsumPhotos > with blur and grayscale 1`] = `"https://picsum.photos/seed/8363366036799488/640/480?grayscale&blur=3"`; +exports[`image > 1211 > urlPicsumPhotos > with blur and grayscale 1`] = `"https://picsum.photos/seed/sTMd8Z2F9G/640/480?grayscale&blur=3"`; -exports[`image > 1211 > urlPicsumPhotos > with height 1`] = `"https://picsum.photos/seed/8363366036799488/640/128"`; +exports[`image > 1211 > urlPicsumPhotos > with height 1`] = `"https://picsum.photos/seed/sTMd8Z2F9G/640/128"`; -exports[`image > 1211 > urlPicsumPhotos > with width 1`] = `"https://picsum.photos/seed/8363366036799488/128/480"`; +exports[`image > 1211 > urlPicsumPhotos > with width 1`] = `"https://picsum.photos/seed/sTMd8Z2F9G/128/480"`; -exports[`image > 1211 > urlPicsumPhotos > with width and height 1`] = `"https://picsum.photos/seed/8363366036799488/128/128"`; +exports[`image > 1211 > urlPicsumPhotos > with width and height 1`] = `"https://picsum.photos/seed/sTMd8Z2F9G/128/128"`; exports[`image > 1211 > urlPlaceholder > noArgs 1`] = `"https://via.placeholder.com/3714x1836/db42f0/e3f4a9.jpeg?text=consequuntur%20quidem%20nobis"`; @@ -146,19 +146,19 @@ exports[`image > 1337 > urlLoremFlickr > with width 1`] = `"https://loremflickr. exports[`image > 1337 > urlLoremFlickr > with width and height 1`] = `"https://loremflickr.com/128/128?lock=2360108468142080"`; -exports[`image > 1337 > urlPicsumPhotos > noArgs 1`] = `"https://picsum.photos/seed/2360108468142080/640/480"`; +exports[`image > 1337 > urlPicsumPhotos > noArgs 1`] = `"https://picsum.photos/seed/y9dhxs/640/480"`; -exports[`image > 1337 > urlPicsumPhotos > with all options 1`] = `"https://picsum.photos/seed/2360108468142080/128/128?grayscale&blur=4"`; +exports[`image > 1337 > urlPicsumPhotos > with all options 1`] = `"https://picsum.photos/seed/y9dhxs/128/128?grayscale&blur=4"`; -exports[`image > 1337 > urlPicsumPhotos > with blur 1`] = `"https://picsum.photos/seed/2360108468142080/640/480?blur=6"`; +exports[`image > 1337 > urlPicsumPhotos > with blur 1`] = `"https://picsum.photos/seed/y9dhxs/640/480?blur=6"`; -exports[`image > 1337 > urlPicsumPhotos > with blur and grayscale 1`] = `"https://picsum.photos/seed/2360108468142080/640/480?grayscale&blur=3"`; +exports[`image > 1337 > urlPicsumPhotos > with blur and grayscale 1`] = `"https://picsum.photos/seed/y9dhxs/640/480?grayscale&blur=3"`; -exports[`image > 1337 > urlPicsumPhotos > with height 1`] = `"https://picsum.photos/seed/2360108468142080/640/128"`; +exports[`image > 1337 > urlPicsumPhotos > with height 1`] = `"https://picsum.photos/seed/y9dhxs/640/128"`; -exports[`image > 1337 > urlPicsumPhotos > with width 1`] = `"https://picsum.photos/seed/2360108468142080/128/480"`; +exports[`image > 1337 > urlPicsumPhotos > with width 1`] = `"https://picsum.photos/seed/y9dhxs/128/480"`; -exports[`image > 1337 > urlPicsumPhotos > with width and height 1`] = `"https://picsum.photos/seed/2360108468142080/128/128"`; +exports[`image > 1337 > urlPicsumPhotos > with width and height 1`] = `"https://picsum.photos/seed/y9dhxs/128/128"`; exports[`image > 1337 > urlPlaceholder > noArgs 1`] = `"https://via.placeholder.com/1048x2242/346ba0/75bd57.webp?text=tempora%20tempore%20aliquam"`; diff --git a/test/image.spec.ts b/test/image.spec.ts index 74327c54416..612766914b2 100644 --- a/test/image.spec.ts +++ b/test/image.spec.ts @@ -455,7 +455,7 @@ describe('image', () => { expect(imageUrl).toBeTypeOf('string'); expect(imageUrl).toMatch( - /^https\:\/\/picsum\.photos\/seed\/\d+\/\d+\/\d+$/ + /^https\:\/\/picsum\.photos\/seed\/[0-9a-zA-Z]+\/\d+\/\d+$/ ); }); }); From 31d9511dfac868cbff4a24a4f2e8ac4a3c1d8957 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Thu, 23 Mar 2023 19:36:57 +0100 Subject: [PATCH 3/3] Update src/modules/image/index.ts --- src/modules/image/index.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/modules/image/index.ts b/src/modules/image/index.ts index 85a957ecc1a..dc7131246c7 100644 --- a/src/modules/image/index.ts +++ b/src/modules/image/index.ts @@ -189,12 +189,12 @@ export class ImageModule { * @param options.blur Whether the image should be blurred. Defaults to `false`. * * @example - * faker.image.urlPicsumPhotos() // 'https://picsum.photos/seed/241/640/480' - * faker.image.urlPicsumPhotos({ width: 128 }) // 'https://picsum.photos/seed/241/128/480' - * faker.image.urlPicsumPhotos({ height: 128 }) // 'https://picsum.photos/seed/241/640/128' - * faker.image.urlPicsumPhotos({ grayscale: true }) // 'https://picsum.photos/seed/241/640/480?grayscale' - * faker.image.urlPicsumPhotos({ blur: 4 }) // 'https://picsum.photos/seed/241/640/480?blur=4' - * faker.image.urlPicsumPhotos({ blur: 4, grayscale: true }) // 'https://picsum.photos/seed/241/640/480?grayscale&blur=4' + * faker.image.urlPicsumPhotos() // 'https://picsum.photos/seed/NWbJM2B/640/480' + * faker.image.urlPicsumPhotos({ width: 128 }) // 'https://picsum.photos/seed/NWbJM2B/128/480' + * faker.image.urlPicsumPhotos({ height: 128 }) // 'https://picsum.photos/seed/NWbJM2B/640/128' + * faker.image.urlPicsumPhotos({ grayscale: true }) // 'https://picsum.photos/seed/NWbJM2B/640/480?grayscale' + * faker.image.urlPicsumPhotos({ blur: 4 }) // 'https://picsum.photos/seed/NWbJM2B/640/480?blur=4' + * faker.image.urlPicsumPhotos({ blur: 4, grayscale: true }) // 'https://picsum.photos/seed/NWbJM2B/640/480?grayscale&blur=4' * * @since 8.0.0 */