Convert Image to WebP

Optimize your images for the web by converting them to the modern WebP format.

Overview

WebP is a modern image format that provides superior lossless and lossy compression for images on the web. Using the image-to-webp operation, you can easily convert JPG, PNG, and other formats to WebP.

How to Convert an Image

Create a task with the operation set to image-to-webp and attach your source image.

bash
curl -X POST https://api.flimpa.com/api/v1/tasks \
  -H "X-API-Key: your_api_key" \
  -F "operation=image-to-webp" \
  -F "file=@/path/to/photo.jpg"

After the task completes, the downloaded file will be a highly optimized WebP image.