Image optimization is a service that can help you save up to 40% of the space occupied by images on your storage. Do you have hundreds, thousands, or perhaps hundreds of thousands of images? With our Image Optimization, it won't be a problem.
Image optimization can reduce the size of digital images in JPEG and PNG formats without loss of quality, with 100% transparency support. Using smart lossy compression methods, your images can be stored in a smaller data volume.This effect is visually almost imperceptible, but it has a significant impact on the file size! Your website will load faster, thereby increasing its performance. Proper image optimization also contributes to better SEO and higher search engine rankings, in other words, it helps you attract more visitors.
curl -H "Content-Type: application/json" https://datasqueezer.com/nexus/createTask -d '{ "token": "__API_TOKEN__", "service": "optimizeimg", "data": "__IMAGE_DATA__" }'
NAME DESCRIPTION REQUIRED PARAMETER __IMAGE_DATA__ Image data in base64
yes
import requests
import jsonendpoint = 'https://datasqueezer.com/nexus/createTask'
data = {
'token': '__API_TOKEN__',
'service': 'optimizeimg',
'data': '__IMAGE_DATA__',
}response = requests.post(endpoint, data=json.dumps(data))
| NAME | DESCRIPTION | REQUIRED PARAMETER |
| __IMAGE_DATA__ | Image data in base64 | yes |
$curlHandle=curl_init("https://datasqueezer.com/nexus/createTask");
$data=[
'token'=>'__TOKEN__',
'service'=>'optimizeimg',
'data'=>'__IMAGE_DATA__'
];curl_setopt($curlHandle, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($curlHandle, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curlHandle, CURLOPT_FOLLOWLOCATION, true);$response=curl_exec($curlHandle);
$error_msg=curl_error($curlHandle);
curl_close($curlHandle);
| NAME | DESCRIPTION | REQUIRED PARAMETER |
| __IMAGE_DATA__ | Image data in base64 | yes |