Path to the source image
Path where the converted image will be saved
Additional conversion options
Path to the converted image
const { convertImageFile, ImageFormat } = require("kiutils");
// Convert PNG to JPEG
convertImageFile("image.png", "converted.jpg", { quality: 90 })
.then(outputPath => console.log(`Converted image saved to ${outputPath}`));
Generated using TypeDoc
Converts an image file from one format to another and saves to a file