On 2 May 2019, at 11:12, Guillermo Polito <guillermopolito@gmail.com> wrote:
This makes me remember when I was working doing android mobile apps: there is a kitten placeholder service too.
And status codes too
ZnEasy getJpeg: 'https://placekitten.com/200/300'.
:)
That is obviously better !
On Wed, May 1, 2019 at 10:41 AM Franz Josef Konrad <franzl@fjkonrad.de> wrote: Am 29.04.2019 um 13:23 schrieb Sven Van Caekenberghe:
Hi,
This is a cool service: https://picsum.photos - it gives you example images (pictures/photos).
Here is how you can use this from a standard Pharo image (no pun intended).
ZnEasy getJpeg: 'https://picsum.photos/512'.
ImageReadWriter formFromStream: (ZnClient new systemPolicy; url: 'https://picsum.photos/640/480?grayscale'; accept: ZnMimeType imagePng; get) readStream.
Sven
Picsum is listed here <https://github.com/toddmotto/public-apis> along with a number of other public APIs. Maybe this overview list is interesting for one or the other.
Franz Josef
--
Guille Polito Research Engineer
Centre de Recherche en Informatique, Signal et Automatique de Lille CRIStAL - UMR 9189 French National Center for Scientific Research - http://www.cnrs.fr
Web: http://guillep.github.io Phone: +33 06 52 70 66 13