You can optimize final output files by setting the optimize
flag to true
when creating a conversion task. If all you want is file optimization, just set the output format equal to the input format.
We try our best to optimize without losing quality for all formats, but optimization for the following formats works best with dedicated optimization engines.
POST /tasks HTTP/1.1 Accept: application/vnd.api+json Content-Type: application/vnd.api+json { "data": { "type": "tasks", "attributes": { "format": { "input": "png", "output": "png" }, "settings": { "optimize": true } }, "relationships": { "input": { "data": { "type": "files", "id": "a8fhd83jpk.png" } } } } }