HTML Content to WebP – Aspose.HTML Cloud
This guide illustrates how to convert HTML content directly into WebP images using Aspose.HTML Cloud API. WebP is an efficient, modern image format known for smaller file sizes and quality preservation.
Make sure you have your authorization token ready. Please visit the Authorization Guide to obtain one.
HTML Content Example
Here’s an example HTML content for conversion:
1<html>
2 <body>
3 <h1>Convert to WebP with Aspose.HTML Cloud!</h1>
4 <p>This WebP image is created directly from HTML content.</p>
5 </body>
6</html>
API Request
Endpoint: POST https://api.aspose.cloud/v4.0/html/conversion/html-webp/sync
Request Body:
1{
2 "InputContent": "<html><body><h1>Convert to WebP with Aspose.HTML Cloud!</h1><p>This WebP image is created directly from HTML content.</p></body></html>"
3}