All Tools›PNG to JPG
Image Convert

PNG to JPG

png-to-jpg

Use PNG to JPG through the Zavilo SDK. Check input limits, parameters, output and supported modes below.

H · HeadlessE · Embedded
Tool IDpng-to-jpg
Version1
ExecutionCLIENT
WorkloadSTANDARD
ModesHeadless, Embedded

Quick actions

Input files 1Output files 1

Input

Accepted input contract for this Tool.

Kindfile
File count1 – 1
Accepted MIME typesimage/png

Parameters

Pass these values through request.options.

Parameter Type Required Default Allowed / Range Description
quality number Optional 0.9 0.1 – 1 Output quality from 0.1 to 1.0.

Output

Result contract returned after successful processing.

Typefiles
File count1 – 1
MIME typesimage/jpeg
Metadatawidth, height, inputBytes, outputBytes
ZIP archiveNo

Basic usage

Choose a supported integration mode and copy the generated starter code.

Headless

const result = await client.run("png-to-jpg", {
  file,
  options: { quality: 0.9 }
});
console.log(result.files, result.data, result.metadata);

Embedded

await client.mount({ tool: "png-to-jpg", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.