Description
The original image source (http://lorempixel.com/ and its fallback https://via.placeholder.com) used by the Faker\Provider\Image class is down or completely unstable. This causes all image generation and download requests (Image::imageUrl() and Image::image()) to fail.
To fix this and restore functional seeding, the provider needs to be updated to a reliable service like Picsum Photos (https://picsum.photos), while handling redirect headers properly.
Steps to Reproduce
- Call
Faker\Provider\Image::imageUrl() or Faker\Provider\Image::image().
- Notice the network failure, timeout, or empty file generation.
Expected Behavior
The provider should return a valid, accessible image URL or successfully download a random placeholder image to the local disk.
Description
The original image source (
http://lorempixel.com/and its fallbackhttps://via.placeholder.com) used by theFaker\Provider\Imageclass is down or completely unstable. This causes all image generation and download requests (Image::imageUrl()andImage::image()) to fail.To fix this and restore functional seeding, the provider needs to be updated to a reliable service like Picsum Photos (
https://picsum.photos), while handling redirect headers properly.Steps to Reproduce
Faker\Provider\Image::imageUrl()orFaker\Provider\Image::image().Expected Behavior
The provider should return a valid, accessible image URL or successfully download a random placeholder image to the local disk.