image api placeholder code example

Example 1: lorum picsum

<img src="https://picsum.photos/200"/>;

Example 2: lorem picsum

<img src="https://picsum.photos/200/300?random=1">
<img src="https://picsum.photos/200/300?random=2">

Example 3: lorem picsum

// For 200px by 300px
https://picsum.photos/200/300
// For square
https://picsum.photos/200

Example 4: lorem picsum

{
        "id": "0",
        "author": "Alejandro Escamilla",
        "width": 5616,
        "height": 3744,
        "url": "https://unsplash.com/...",
        "download_url": "https://picsum.photos/..."
}

Tags:

Php Example