← Back to Home

WebP Image

/image/webp
Returns a sample WebP image. Useful for testing modern image format support.

Examples

curl
# Download WebP image
curl https://tcpdata.com/image/webp -o image.webp
JavaScript (fetch)
fetch('https://tcpdata.com/image/webp')
  .then(res => res.blob())
  .then(blob => {
    const img = document.createElement('img');
    img.src = URL.createObjectURL(blob);
    document.body.appendChild(img);
  });
Python (requests)
import requests

response = requests.get('https://tcpdata.com/image/webp')
with open('image.webp', 'wb') as f:
    f.write(response.content)