migrate to vips

This commit is contained in:
C4illin 2024-05-25 15:52:04 +02:00
parent d6b38c6866
commit d81a3a6ab4
11 changed files with 277 additions and 59 deletions

View file

@ -131,11 +131,16 @@ export function convert(
`pandoc "${filePath}" -f ${fileType} -t ${convertTo} -o "${targetPath}"`,
(error, stdout, stderr) => {
if (error) {
console.error(`exec error: ${error}`);
return;
return error;
}
if (stdout) {
console.log(`stdout: ${stdout}`);
}
if (stderr) {
console.error(`stderr: ${stderr}`);
}
console.log(`stdout: ${stdout}`);
console.error(`stderr: ${stderr}`);
},
);
}