Faker.js: LoremPixel is down. Should there be a switch to a different image faker?

Created on 10 May 2018  路  21Comments  路  Source: Marak/faker.js

https://github.com/Marak/faker.js/blob/e2305d76d7c69134ab773127a4e6e4e82fab23f3/lib/image.js#L45

Do the maintainers want a PR that switches this URL to something else?

Most helpful comment

for the time being, I'm using

{
  image: 'https://picsum.photos/500/320/?image='+faker.random.number(1084),
}

which allows me to have repeatable results with faker.seed(), however, I noticed that some ids are missing on picsum.photos

All 21 comments

Do you have any candidates in mind ?

Lorem Flickr looks alright? https://loremflickr.com/

Nice. I have seen that lorem picsum also has an almost-same api as lorempixel

Yeah, it would just be a switch of the domain, so no real work. I did a little bit of research on lorem Flickr and it looks like it鈥檚 free and all they have is a paypal link, no advertising or anything.

Actually I totally take back what I said about loremFlickr, we should switch to https://placekitten.com/420/320

Alternatively, anything from this list should be fine: https://www.johanbostrom.se/blog/the-best-image-placeholder-services-on-the-web

FWIW, there's a pull request open at #398 to add additional image services. However, it hard-codes different methods for different providers, and could stand to be refactored a bit. If you could pick up the gauntlet, that'd be great! At the same time, you could add loremFlickr, placekitten, and the others from johanbostrom.se's list.

Hmm I could look into it but that PR looks pretty massive! I'll look more closely this weekend.

+1.

In my location vietnamese http://lorempixel.com alway down

PR #398 looks like the right solution.

If anyone could help review this PR it would help.

It would probably also be a good idea if we could use Github as provider through their CDN.

https://picsum.photos/ the Best one by far.

If anyone has additional input on this issue or PR #398 please let us know.

We'll be resolving this soon.

I think it's time to move to another service or allow the user to select from different available services.
in both cases, PR #398 status should be resolved.

for the time being, I'm using

{
  image: 'https://picsum.photos/500/320/?image='+faker.random.number(1084),
}

which allows me to have repeatable results with faker.seed(), however, I noticed that some ids are missing on picsum.photos

@Marak Any updates on this? Still looking for community support or are we ready on #398 ?

Thanks!

lorempixel is down (pinging from S茫o Paulo Brazil). Service was spotty for the last week or so, and now it seems down.

It's down for me too.

lorempicsum is very slow. Could https://picsum.photos/ be used instead in the API?

@Marak bump

Looks like DDoS attack :D

+1

I like placeimg.com. It also shares the same url structure as lorempixel.com, which makes things easy. I just made a new pull request with the change.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Deilan picture Deilan  路  3Comments

clarmso picture clarmso  路  3Comments

noyessie picture noyessie  路  4Comments

jamesbrucepower picture jamesbrucepower  路  6Comments

fauzanelka picture fauzanelka  路  4Comments