Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use placehold.co to generate placeholder images #1656

Merged
merged 1 commit into from
Aug 12, 2024
Merged

Conversation

acelaya
Copy link
Contributor

@acelaya acelaya commented Aug 12, 2024

We were using placekitten.com to generate placeholder images, but the service is no longer available.

This PR replaces that service with https://placehold.co, which generates a bit more boring images, but should work as a valid replacement.

@acelaya acelaya force-pushed the fix-placeholder-images branch from 8a0b58f to f35245a Compare August 12, 2024 14:45
Copy link

codecov bot commented Aug 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (a9630cf) to head (f35245a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1656   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           61        61           
  Lines         1040      1040           
  Branches       402       402           
=========================================
  Hits          1040      1040           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@robertknight robertknight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is better than dead URLs, although it would be nice to have placeholders that allow you to see if the border gets cropped easily.

@acelaya
Copy link
Contributor Author

acelaya commented Aug 12, 2024

This is better than dead URLs, although it would be nice to have placeholders that allow you to see if the border gets cropped easily.

Yep, that was my thinking, but I couldn't find a service returning "actual" images. Most follow this pattern of returning an image with the size in the middle.

I found one returning random images from flickr. I thought that was a no go 😅

@acelaya acelaya merged commit 7bb2a96 into main Aug 12, 2024
4 checks passed
@acelaya acelaya deleted the fix-placeholder-images branch August 12, 2024 14:56
@robertknight
Copy link
Member

Yep, that was my thinking, but I couldn't find a service returning "actual" images. Most follow this pattern of returning an image with the size in the middle.

I discovered https://picsum.photos in my travels.

@acelaya
Copy link
Contributor Author

acelaya commented Aug 12, 2024

There's one thing we could do though. We always use the 400x400 size, except in one test where we use the 300x300 one.

I have the suspicion the test one is not important, and for the others, we could just have a locally-stored image. There's no need for an external service to always use the same image.

@acelaya
Copy link
Contributor Author

acelaya commented Aug 12, 2024

Yep, that was my thinking, but I couldn't find a service returning "actual" images. Most follow this pattern of returning an image with the size in the middle.

I discovered https://picsum.photos in my travels.

Hah! This one is nice

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.

2 participants