DMarby / picsum-photos

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

Return an array of items with fixed size images, e.g. 200x300 #96

Closed pavsoldatov closed 1 year ago

pavsoldatov commented 1 year ago

The title says it. Is there a way to return a list of "n" items, where the height and/or width of an image is fixed to a specified size, e.g. 200 by 300.

I'm basically looking for the command below, except that I want to manipulate the size of images to be returned. https://picsum.photos/v2/list?page=2&limit=100

Thanks in advance. The app is awesome, btw!

DMarby commented 1 year ago

Hi there,

You can just use the image id's from the list endpoint and then use the id endpoint as described on https://picsum.photos to get any size of image, eg https://picsum.photos/id/{image id}/{width}/{height} yourself. As such, we won't be adding a separate endpoint for this usecase specifically.