@@ -30,9 +30,9 @@ export class Image {
30
30
/**
31
31
* Generates a random image url from one of the supported categories.
32
32
*
33
- * @param width The width of the image.
34
- * @param height The height of the image.
35
- * @param randomize Whether to randomize the image or not.
33
+ * @param width The width of the image. Defaults to `640`.
34
+ * @param height The height of the image. Defaults to `480`.
35
+ * @param randomize Whether to randomize the image or not. Defaults to `false`.
36
36
*
37
37
* @example
38
38
* faker.image.image() // 'http://placeimg.com/640/480/city'
@@ -79,7 +79,7 @@ export class Image {
79
79
* @param width The width of the image. Defaults to `640`.
80
80
* @param height The height of the image. Defaults to `480`.
81
81
* @param category The category of the image. By default, a random one will be selected.
82
- * @param randomize Whether to randomize the image or not.
82
+ * @param randomize Whether to randomize the image or not. Defaults to `false`.
83
83
* @param https When true, return a `https` url. Otherwise, return a `http` url.
84
84
*
85
85
* @example
@@ -117,9 +117,9 @@ export class Image {
117
117
/**
118
118
* Generates a random abstract image url.
119
119
*
120
- * @param width The width of the image.
121
- * @param height The height of the image.
122
- * @param randomize Whether to randomize the image or not.
120
+ * @param width The width of the image. Defaults to `640`.
121
+ * @param height The height of the image. Defaults to `480`.
122
+ * @param randomize Whether to randomize the image or not. Defaults to `false`.
123
123
*
124
124
* @example
125
125
* faker.image.abstract() // 'http://placeimg.com/640/480/abstract'
@@ -133,9 +133,9 @@ export class Image {
133
133
/**
134
134
* Generates a random animal image url.
135
135
*
136
- * @param width The width of the image.
137
- * @param height The height of the image.
138
- * @param randomize Whether to randomize the image or not.
136
+ * @param width The width of the image. Defaults to `640`.
137
+ * @param height The height of the image. Defaults to `480`.
138
+ * @param randomize Whether to randomize the image or not. Defaults to `false`.
139
139
*
140
140
* @example
141
141
* faker.image.animals() // 'http://placeimg.com/640/480/animals'
@@ -149,9 +149,9 @@ export class Image {
149
149
/**
150
150
* Generates a random business image url.
151
151
*
152
- * @param width The width of the image.
153
- * @param height The height of the image.
154
- * @param randomize Whether to randomize the image or not.
152
+ * @param width The width of the image. Defaults to `640`.
153
+ * @param height The height of the image. Defaults to `480`.
154
+ * @param randomize Whether to randomize the image or not. Defaults to `false`.
155
155
*
156
156
* @example
157
157
* faker.image.business() // 'http://placeimg.com/640/480/business'
@@ -165,9 +165,9 @@ export class Image {
165
165
/**
166
166
* Generates a random cat image url.
167
167
*
168
- * @param width The width of the image.
169
- * @param height The height of the image.
170
- * @param randomize Whether to randomize the image or not.
168
+ * @param width The width of the image. Defaults to `640`.
169
+ * @param height The height of the image. Defaults to `480`.
170
+ * @param randomize Whether to randomize the image or not. Defaults to `false`.
171
171
*
172
172
* @example
173
173
* faker.image.cats() // 'http://placeimg.com/640/480/cats'
@@ -181,9 +181,9 @@ export class Image {
181
181
/**
182
182
* Generates a random city image url.
183
183
*
184
- * @param width The width of the image.
185
- * @param height The height of the image.
186
- * @param randomize Whether to randomize the image or not.
184
+ * @param width The width of the image. Defaults to `640`.
185
+ * @param height The height of the image. Defaults to `480`.
186
+ * @param randomize Whether to randomize the image or not. Defaults to `false`.
187
187
*
188
188
* @example
189
189
* faker.image.city() // 'http://placeimg.com/640/480/city'
@@ -197,9 +197,9 @@ export class Image {
197
197
/**
198
198
* Generates a random food image url.
199
199
*
200
- * @param width The width of the image.
201
- * @param height The height of the image.
202
- * @param randomize Whether to randomize the image or not.
200
+ * @param width The width of the image. Defaults to `640`.
201
+ * @param height The height of the image. Defaults to `480`.
202
+ * @param randomize Whether to randomize the image or not. Defaults to `false`.
203
203
*
204
204
* @example
205
205
* faker.image.food() // 'http://placeimg.com/640/480/food'
@@ -213,9 +213,9 @@ export class Image {
213
213
/**
214
214
* Generates a random nightlife image url.
215
215
*
216
- * @param width The width of the image.
217
- * @param height The height of the image.
218
- * @param randomize Whether to randomize the image or not.
216
+ * @param width The width of the image. Defaults to `640`.
217
+ * @param height The height of the image. Defaults to `480`.
218
+ * @param randomize Whether to randomize the image or not. Defaults to `false`.
219
219
*
220
220
* @example
221
221
* faker.image.nightlife() // 'http://placeimg.com/640/480/nightlife'
@@ -229,9 +229,9 @@ export class Image {
229
229
/**
230
230
* Generates a random fashion image url.
231
231
*
232
- * @param width The width of the image.
233
- * @param height The height of the image.
234
- * @param randomize Whether to randomize the image or not.
232
+ * @param width The width of the image. Defaults to `640`.
233
+ * @param height The height of the image. Defaults to `480`.
234
+ * @param randomize Whether to randomize the image or not. Defaults to `false`.
235
235
*
236
236
* @example
237
237
* faker.image.fashion() // 'http://placeimg.com/640/480/fashion'
@@ -245,9 +245,9 @@ export class Image {
245
245
/**
246
246
* Generates a random people image url.
247
247
*
248
- * @param width The width of the image.
249
- * @param height The height of the image.
250
- * @param randomize Whether to randomize the image or not.
248
+ * @param width The width of the image. Defaults to `640`.
249
+ * @param height The height of the image. Defaults to `480`.
250
+ * @param randomize Whether to randomize the image or not. Defaults to `false`.
251
251
*
252
252
* @example
253
253
* faker.image.people() // 'http://placeimg.com/640/480/people'
@@ -261,9 +261,9 @@ export class Image {
261
261
/**
262
262
* Generates a random nature image url.
263
263
*
264
- * @param width The width of the image.
265
- * @param height The height of the image.
266
- * @param randomize Whether to randomize the image or not.
264
+ * @param width The width of the image. Defaults to `640`.
265
+ * @param height The height of the image. Defaults to `480`.
266
+ * @param randomize Whether to randomize the image or not. Defaults to `false`.
267
267
*
268
268
* @example
269
269
* faker.image.nature() // 'http://placeimg.com/640/480/nature'
@@ -277,9 +277,9 @@ export class Image {
277
277
/**
278
278
* Generates a random sports image url.
279
279
*
280
- * @param width The width of the image.
281
- * @param height The height of the image.
282
- * @param randomize Whether to randomize the image or not.
280
+ * @param width The width of the image. Defaults to `640`.
281
+ * @param height The height of the image. Defaults to `480`.
282
+ * @param randomize Whether to randomize the image or not. Defaults to `false`.
283
283
*
284
284
* @example
285
285
* faker.image.sports() // 'http://placeimg.com/640/480/sports'
@@ -293,9 +293,9 @@ export class Image {
293
293
/**
294
294
* Generates a random technics image url.
295
295
*
296
- * @param width The width of the image.
297
- * @param height The height of the image.
298
- * @param randomize Whether to randomize the image or not.
296
+ * @param width The width of the image. Defaults to `640`.
297
+ * @param height The height of the image. Defaults to `480`.
298
+ * @param randomize Whether to randomize the image or not. Defaults to `false`.
299
299
*
300
300
* @example
301
301
* faker.image.technics() // 'http://placeimg.com/640/480/technics'
@@ -309,9 +309,9 @@ export class Image {
309
309
/**
310
310
* Generates a random transport image url.
311
311
*
312
- * @param width The width of the image.
313
- * @param height The height of the image.
314
- * @param randomize Whether to randomize the image or not.
312
+ * @param width The width of the image. Defaults to `640`.
313
+ * @param height The height of the image. Defaults to `480`.
314
+ * @param randomize Whether to randomize the image or not. Defaults to `false`.
315
315
*
316
316
* @example
317
317
* faker.image.transport() // 'http://placeimg.com/640/480/transport'
@@ -325,8 +325,8 @@ export class Image {
325
325
/**
326
326
* Generates a random data uri containing an svg image.
327
327
*
328
- * @param width The width of the image.
329
- * @param height The height of the image.
328
+ * @param width The width of the image. Defaults to `640`.
329
+ * @param height The height of the image. Defaults to `480`.
330
330
* @param color The color to use. Defaults to `grey`.
331
331
*
332
332
* @example
0 commit comments