Skip to content

Fix: Outdated and broken Image Provider (lorempixel / via.placeholder) #1058

Description

@damidani

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

  1. Call Faker\Provider\Image::imageUrl() or Faker\Provider\Image::image().
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions