Third Light Developer Exchange

Code and templating community forum for developers and software integrators

You are not logged in.


If you wish to join the Developer Exchange, please contact your account manager - this is to avoid unnecessary spam in the forums. Many thanks for your understanding.

#1 2021-12-14 23:23:48

New User
Registered: 2021-12-14
Posts: 1

Image compression

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!


#2 2021-12-15 19:13:43

Third Light Staff
From: Third Light
Registered: 2013-06-06
Posts: 79

Re: Image compression

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


Board footer