DMarby / picsum-photos

Lorem Ipsum... but for photos.
https://picsum.photos
MIT License
2.2k stars 152 forks source link

A way to credit the image #69

Closed ghost closed 1 year ago

ghost commented 3 years ago

Right now, I usually just say "Random image picked by Picsum from Unsplash", but I would like to be able to credit the photographer.

What if there was a ?credit=1 option where it could insert a dark-grey bar at the bottom of the image with a credit?

DMarby commented 1 year ago

Hi,

While this sounds like a potentially useful feature, this would add a lot of extra required processing as it's a more complex processing operation, and also potential cache issues as it doubles the cache space of processed images, and as such we are not planning to implement this for now.

Please note that you can also look up information of any returned image by grabbing the ID from the Picsum-ID HTTP header and using the /id/{id}/info endpoint, more details on how to use it can be found at the bottom of https://picsum.photos

An example of doing so in JS can be found here: https://jsbin.com/lewivujafu/1/edit?html,js,output