@@ -35,9 +35,9 @@ export class Image {
35
35
* @param randomize Whether to randomize the image or not. Defaults to `false`.
36
36
*
37
37
* @example
38
- * faker.image.image() // 'http://placeimg .com/640/480/city'
39
- * faker.image.image(1234, 2345) // 'http://placeimg .com/1234/2345/sports'
40
- * faker.image.image(1234, 2345, true) // 'http://placeimg .com/1234/2345/nature?56789'
38
+ * faker.image.image() // 'http://loremflickr .com/640/480/city'
39
+ * faker.image.image(1234, 2345) // 'http://loremflickr .com/1234/2345/sports'
40
+ * faker.image.image(1234, 2345, true) // 'http://loremflickr .com/1234/2345/nature?56789'
41
41
*/
42
42
image ( width ?: number , height ?: number , randomize ?: boolean ) : string {
43
43
const categories = [
@@ -83,11 +83,11 @@ export class Image {
83
83
* @param https When true, return a `https` url. Otherwise, return a `http` url.
84
84
*
85
85
* @example
86
- * faker.image.imageUrl() // 'http://placeimg .com/640/480'
87
- * faker.image.imageUrl(1234, 2345) // 'http://placeimg .com/1234/2345'
88
- * faker.image.imageUrl(1234, 2345, 'cat') // 'http://placeimg .com/1234/2345/cat'
89
- * faker.image.imageUrl(1234, 2345, 'cat', true) // 'http://placeimg .com/1234/2345/cat?6849'
90
- * faker.image.imageUrl(1234, 2345, 'cat', true, true) // 'https://placeimg .com/1234/2345/cat?56789'
86
+ * faker.image.imageUrl() // 'http://loremflickr .com/640/480'
87
+ * faker.image.imageUrl(1234, 2345) // 'http://loremflickr .com/1234/2345'
88
+ * faker.image.imageUrl(1234, 2345, 'cat') // 'http://loremflickr .com/1234/2345/cat'
89
+ * faker.image.imageUrl(1234, 2345, 'cat', true) // 'http://loremflickr .com/1234/2345/cat?6849'
90
+ * faker.image.imageUrl(1234, 2345, 'cat', true, true) // 'https://loremflickr .com/1234/2345/cat?56789'
91
91
*/
92
92
imageUrl (
93
93
width ?: number ,
@@ -102,7 +102,7 @@ export class Image {
102
102
if ( https === true ) {
103
103
protocol = 'https://' ;
104
104
}
105
- let url = `${ protocol } placeimg .com/${ width } /${ height } ` ;
105
+ let url = `${ protocol } loremflickr .com/${ width } /${ height } ` ;
106
106
if ( category != null ) {
107
107
url += '/' + category ;
108
108
}
@@ -122,9 +122,9 @@ export class Image {
122
122
* @param randomize Whether to randomize the image or not. Defaults to `false`.
123
123
*
124
124
* @example
125
- * faker.image.abstract() // 'http://placeimg .com/640/480/abstract'
126
- * faker.image.abstract(1234, 2345) // 'http://placeimg .com/1234/2345/abstract'
127
- * faker.image.abstract(1234, 2345, true) // 'http://placeimg .com/1234/2345/abstract?56789'
125
+ * faker.image.abstract() // 'http://loremflickr .com/640/480/abstract'
126
+ * faker.image.abstract(1234, 2345) // 'http://loremflickr .com/1234/2345/abstract'
127
+ * faker.image.abstract(1234, 2345, true) // 'http://loremflickr .com/1234/2345/abstract?56789'
128
128
*/
129
129
abstract ( width ?: number , height ?: number , randomize ?: boolean ) : string {
130
130
return this . faker . image . imageUrl ( width , height , 'abstract' , randomize ) ;
@@ -138,9 +138,9 @@ export class Image {
138
138
* @param randomize Whether to randomize the image or not. Defaults to `false`.
139
139
*
140
140
* @example
141
- * faker.image.animals() // 'http://placeimg .com/640/480/animals'
142
- * faker.image.animals(1234, 2345) // 'http://placeimg .com/1234/2345/animals'
143
- * faker.image.animals(1234, 2345, true) // 'http://placeimg .com/1234/2345/animals?56789'
141
+ * faker.image.animals() // 'http://loremflickr .com/640/480/animals'
142
+ * faker.image.animals(1234, 2345) // 'http://loremflickr .com/1234/2345/animals'
143
+ * faker.image.animals(1234, 2345, true) // 'http://loremflickr .com/1234/2345/animals?56789'
144
144
*/
145
145
animals ( width ?: number , height ?: number , randomize ?: boolean) : string {
146
146
return this . faker . image . imageUrl ( width , height , 'animals' , randomize ) ;
@@ -154,9 +154,9 @@ export class Image {
154
154
* @param randomize Whether to randomize the image or not. Defaults to `false`.
155
155
*
156
156
* @example
157
- * faker.image.business() // 'http://placeimg .com/640/480/business'
158
- * faker.image.business(1234, 2345) // 'http://placeimg .com/1234/2345/business'
159
- * faker.image.business(1234, 2345, true) // 'http://placeimg .com/1234/2345/business?56789'
157
+ * faker.image.business() // 'http://loremflickr .com/640/480/business'
158
+ * faker.image.business(1234, 2345) // 'http://loremflickr .com/1234/2345/business'
159
+ * faker.image.business(1234, 2345, true) // 'http://loremflickr .com/1234/2345/business?56789'
160
160
*/
161
161
business ( width ?: number , height ?: number , randomize ?: boolean) : string {
162
162
return this . faker . image . imageUrl ( width , height , 'business' , randomize ) ;
@@ -170,9 +170,9 @@ export class Image {
170
170
* @param randomize Whether to randomize the image or not. Defaults to `false`.
171
171
*
172
172
* @example
173
- * faker.image.cats() // 'http://placeimg .com/640/480/cats'
174
- * faker.image.cats(1234, 2345) // 'http://placeimg .com/1234/2345/cats'
175
- * faker.image.cats(1234, 2345, true) // 'http://placeimg .com/1234/2345/cats?56789'
173
+ * faker.image.cats() // 'http://loremflickr .com/640/480/cats'
174
+ * faker.image.cats(1234, 2345) // 'http://loremflickr .com/1234/2345/cats'
175
+ * faker.image.cats(1234, 2345, true) // 'http://loremflickr .com/1234/2345/cats?56789'
176
176
*/
177
177
cats ( width ?: number , height ?: number , randomize ?: boolean) : string {
178
178
return this . faker . image . imageUrl ( width , height , 'cats' , randomize ) ;
@@ -186,9 +186,9 @@ export class Image {
186
186
* @param randomize Whether to randomize the image or not. Defaults to `false`.
187
187
*
188
188
* @example
189
- * faker.image.city() // 'http://placeimg .com/640/480/city'
190
- * faker.image.city(1234, 2345) // 'http://placeimg .com/1234/2345/city'
191
- * faker.image.city(1234, 2345, true) // 'http://placeimg .com/1234/2345/city?56789'
189
+ * faker.image.city() // 'http://loremflickr .com/640/480/city'
190
+ * faker.image.city(1234, 2345) // 'http://loremflickr .com/1234/2345/city'
191
+ * faker.image.city(1234, 2345, true) // 'http://loremflickr .com/1234/2345/city?56789'
192
192
*/
193
193
city ( width ?: number , height ?: number , randomize ?: boolean) : string {
194
194
return this . faker . image . imageUrl ( width , height , 'city' , randomize ) ;
@@ -202,9 +202,9 @@ export class Image {
202
202
* @param randomize Whether to randomize the image or not. Defaults to `false`.
203
203
*
204
204
* @example
205
- * faker.image.food() // 'http://placeimg .com/640/480/food'
206
- * faker.image.food(1234, 2345) // 'http://placeimg .com/1234/2345/food'
207
- * faker.image.food(1234, 2345, true) // 'http://placeimg .com/1234/2345/food?56789'
205
+ * faker.image.food() // 'http://loremflickr .com/640/480/food'
206
+ * faker.image.food(1234, 2345) // 'http://loremflickr .com/1234/2345/food'
207
+ * faker.image.food(1234, 2345, true) // 'http://loremflickr .com/1234/2345/food?56789'
208
208
*/
209
209
food ( width ?: number , height ?: number , randomize ?: boolean) : string {
210
210
return this . faker . image . imageUrl ( width , height , 'food' , randomize ) ;
@@ -218,9 +218,9 @@ export class Image {
218
218
* @param randomize Whether to randomize the image or not. Defaults to `false`.
219
219
*
220
220
* @example
221
- * faker.image.nightlife() // 'http://placeimg .com/640/480/nightlife'
222
- * faker.image.nightlife(1234, 2345) // 'http://placeimg .com/1234/2345/nightlife'
223
- * faker.image.nightlife(1234, 2345, true) // 'http://placeimg .com/1234/2345/nightlife?56789'
221
+ * faker.image.nightlife() // 'http://loremflickr .com/640/480/nightlife'
222
+ * faker.image.nightlife(1234, 2345) // 'http://loremflickr .com/1234/2345/nightlife'
223
+ * faker.image.nightlife(1234, 2345, true) // 'http://loremflickr .com/1234/2345/nightlife?56789'
224
224
*/
225
225
nightlife ( width ?: number , height ?: number , randomize ?: boolean) : string {
226
226
return this . faker . image . imageUrl ( width , height , 'nightlife' , randomize ) ;
@@ -234,9 +234,9 @@ export class Image {
234
234
* @param randomize Whether to randomize the image or not. Defaults to `false`.
235
235
*
236
236
* @example
237
- * faker.image.fashion() // 'http://placeimg .com/640/480/fashion'
238
- * faker.image.fashion(1234, 2345) // 'http://placeimg .com/1234/2345/fashion'
239
- * faker.image.fashion(1234, 2345, true) // 'http://placeimg .com/1234/2345/fashion?56789'
237
+ * faker.image.fashion() // 'http://loremflickr .com/640/480/fashion'
238
+ * faker.image.fashion(1234, 2345) // 'http://loremflickr .com/1234/2345/fashion'
239
+ * faker.image.fashion(1234, 2345, true) // 'http://loremflickr .com/1234/2345/fashion?56789'
240
240
*/
241
241
fashion ( width ?: number , height ?: number , randomize ?: boolean) : string {
242
242
return this . faker . image . imageUrl ( width , height , 'fashion' , randomize ) ;
@@ -250,9 +250,9 @@ export class Image {
250
250
* @param randomize Whether to randomize the image or not. Defaults to `false`.
251
251
*
252
252
* @example
253
- * faker.image.people() // 'http://placeimg .com/640/480/people'
254
- * faker.image.people(1234, 2345) // 'http://placeimg .com/1234/2345/people'
255
- * faker.image.people(1234, 2345, true) // 'http://placeimg .com/1234/2345/people?56789'
253
+ * faker.image.people() // 'http://loremflickr .com/640/480/people'
254
+ * faker.image.people(1234, 2345) // 'http://loremflickr .com/1234/2345/people'
255
+ * faker.image.people(1234, 2345, true) // 'http://loremflickr .com/1234/2345/people?56789'
256
256
*/
257
257
people ( width ?: number , height ?: number , randomize ?: boolean) : string {
258
258
return this . faker . image . imageUrl ( width , height , 'people' , randomize ) ;
@@ -266,9 +266,9 @@ export class Image {
266
266
* @param randomize Whether to randomize the image or not. Defaults to `false`.
267
267
*
268
268
* @example
269
- * faker.image.nature() // 'http://placeimg .com/640/480/nature'
270
- * faker.image.nature(1234, 2345) // 'http://placeimg .com/1234/2345/nature'
271
- * faker.image.nature(1234, 2345, true) // 'http://placeimg .com/1234/2345/nature?56789'
269
+ * faker.image.nature() // 'http://loremflickr .com/640/480/nature'
270
+ * faker.image.nature(1234, 2345) // 'http://loremflickr .com/1234/2345/nature'
271
+ * faker.image.nature(1234, 2345, true) // 'http://loremflickr .com/1234/2345/nature?56789'
272
272
*/
273
273
nature ( width ?: number , height ?: number , randomize ?: boolean) : string {
274
274
return this . faker . image . imageUrl ( width , height , 'nature' , randomize ) ;
@@ -282,9 +282,9 @@ export class Image {
282
282
* @param randomize Whether to randomize the image or not. Defaults to `false`.
283
283
*
284
284
* @example
285
- * faker.image.sports() // 'http://placeimg .com/640/480/sports'
286
- * faker.image.sports(1234, 2345) // 'http://placeimg .com/1234/2345/sports'
287
- * faker.image.sports(1234, 2345, true) // 'http://placeimg .com/1234/2345/sports?56789'
285
+ * faker.image.sports() // 'http://loremflickr .com/640/480/sports'
286
+ * faker.image.sports(1234, 2345) // 'http://loremflickr .com/1234/2345/sports'
287
+ * faker.image.sports(1234, 2345, true) // 'http://loremflickr .com/1234/2345/sports?56789'
288
288
*/
289
289
sports ( width ?: number , height ?: number , randomize ?: boolean) : string {
290
290
return this . faker . image . imageUrl ( width , height , 'sports' , randomize ) ;
@@ -298,9 +298,9 @@ export class Image {
298
298
* @param randomize Whether to randomize the image or not. Defaults to `false`.
299
299
*
300
300
* @example
301
- * faker.image.technics() // 'http://placeimg .com/640/480/technics'
302
- * faker.image.technics(1234, 2345) // 'http://placeimg .com/1234/2345/technics'
303
- * faker.image.technics(1234, 2345, true) // 'http://placeimg .com/1234/2345/technics?56789'
301
+ * faker.image.technics() // 'http://loremflickr .com/640/480/technics'
302
+ * faker.image.technics(1234, 2345) // 'http://loremflickr .com/1234/2345/technics'
303
+ * faker.image.technics(1234, 2345, true) // 'http://loremflickr .com/1234/2345/technics?56789'
304
304
*/
305
305
technics ( width ?: number , height ?: number , randomize ?: boolean) : string {
306
306
return this . faker . image . imageUrl ( width , height , 'technics' , randomize ) ;
@@ -314,9 +314,9 @@ export class Image {
314
314
* @param randomize Whether to randomize the image or not. Defaults to `false`.
315
315
*
316
316
* @example
317
- * faker.image.transport() // 'http://placeimg .com/640/480/transport'
318
- * faker.image.transport(1234, 2345) // 'http://placeimg .com/1234/2345/transport'
319
- * faker.image.transport(1234, 2345, true) // 'http://placeimg .com/1234/2345/transport?56789'
317
+ * faker.image.transport() // 'http://loremflickr .com/640/480/transport'
318
+ * faker.image.transport(1234, 2345) // 'http://loremflickr .com/1234/2345/transport'
319
+ * faker.image.transport(1234, 2345, true) // 'http://loremflickr .com/1234/2345/transport?56789'
320
320
*/
321
321
transport ( width ?: number , height ?: number , randomize ?: boolean) : string {
322
322
return this . faker . image . imageUrl ( width , height , 'transport' , randomize ) ;
0 commit comments