Skip to content

Fix: Update Image provider to use picsum.photos#1059

Open
damidani wants to merge 1 commit into
FakerPHP:2.0from
damidani:2.0
Open

Fix: Update Image provider to use picsum.photos#1059
damidani wants to merge 1 commit into
FakerPHP:2.0from
damidani:2.0

Conversation

@damidani

@damidani damidani commented Jun 3, 2026

Copy link
Copy Markdown

Description

This PR replaces the outdated and dead image placeholder services (lorempixel / via.placeholder) with Picsum Photos inside the Image provider.

Changes

  • Updated BASE_URL to point to https://picsum.photos.
  • Adjusted imageUrl() to build query parameters matching Picsum's API (grayscale, random).
  • Added CURLOPT_FOLLOWLOCATION => true in the cURL request because Picsum serves images via 302 redirects.
  • Kept original signatures, deprecation notices, and English PHPDoc comments intact for backward compatibility.

Closes #1058

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant