You are not logged in.
Pages: 1
Hi, is it possible to enable image compression on the API? We are receiving very large images through it which is causing delays to page load. Would be grateful for any assistance!
Offline
Hi - assuming you are using Downloads.GetLink, it is possible to specify a quality value in the settings array.
So something like this as raw JSON input data:
{
"apiVersion": "1.0",
"action": "Downloads.getLink",
"inParams": {
"assetId": 71124943730,
"settings": {
"width": 300,
"height": 200,
"quality": 70
}
},
"sessionId": "QwROiZv7BpAmKSJGcSsxpvRdkCJHXJks"
}
Quality should be a number between 60 and 99 inclusive.
Also worth checking whether you are using width and height to reduce the resolution?
Cheers, Ben
Offline
Pages: 1