mirror of
https://github.com/C4illin/ConvertX.git
synced 2026-06-28 06:55:48 +00:00
Fix EMF argument handling to preserve existing args
- Change from assignment to append for inputArgs and outputArgs in EMF handling - Addresses Sourcery AI feedback about potential argument override - Ensures compatibility with other file type conversions (e.g., SVG)
This commit is contained in:
committed by
Emrik Östling
parent
0e94fe354f
commit
dd9d117ab8
@@ -463,8 +463,8 @@ export function convert(
|
||||
// Handle EMF files specifically to avoid LibreOffice delegate issues
|
||||
if (fileType === "emf") {
|
||||
// Use direct conversion without delegates for EMF files
|
||||
inputArgs = ["-define", "emf:delegate=false", "-density", "300"];
|
||||
outputArgs = ["-background", "white", "-alpha", "remove"];
|
||||
inputArgs.push("-define", "emf:delegate=false", "-density", "300");
|
||||
outputArgs.push("-background", "white", "-alpha", "remove");
|
||||
}
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
Reference in New Issue
Block a user