NConvert is failing with exit code: -1073740791 whenever I try to convert/replace an image to JPEG XL
This is the command used (important: commands are generated by an automated tool, and all input files are JPEGs):
Code: Select all
$ nconvert.exe -rtype lanczos -out jpegxl -q 85 -D -overwrite "D:\path\to\folder\*.*"
Code: Select all
$ nconvert.exe -rtype lanczos -out jpeg -q 85 -D -overwrite "D:\path\to\folder\*.*"
$ nconvert.exe -rtype lanczos -out webp -q 85 -D -overwrite "D:\path\to\folder\*.*"
Code: Select all
$ nconvert.exe -rtype lanczos -out jpegxl -q 85 -o "_workspace_\%.jxl" "D:\path\to\folder\*.*"
In the making of this post I noticed a difference between the two commands, the one in the same folder and
the command to convert to a different folder, only the latter having the -o "%.jxl" params. So I did a test and
with the next command I was able to successfully convert the directory I was having the issue with:
Code: Select all
$ nconvert.exe -rtype lanczos -out jpegxl -q 85 -D -overwrite "D:\path\to\folder\*.*"
and again it failed with exit code -1073740791. The difference I can see is that the new folder has bigger JPEG photographs,
each about ~4MB and over 9000px wide.
But then I tried downsizing the same folder images using JPEG XL (to 6000px on its longest side) and it worked (twice):
Code: Select all
$ nconvert.exe -rtype lanczos -resize longest 6000 -rflag decr -out jpegxl -q 85 -o "_workspace_\%.jxl" "D:\path\to\folder\*.*"
And also, it seems like the {{ -o %.jxl }} flag is mandatory for JPEG XL even when overwriting/replacing, but not for other formats.
I'd appreciate any comments..
Best regards!