Thanks, that image looks rather technical!
The following basic code run at the command line will convert a .emf file to JPEG with JPEG quality = 80 :
Code: Select all
nconvert -out jpeg -q 80 filename.emf
The following basic code run at the command line will convert all the .emf files in the Input folder into JPEG files in the Output folder with the same file names:
Code: Select all
nconvert -out jpeg -q 80 -o "C:\A\Output\%.jpeg" C:\A\Input\*.emf
When that code is run as a Windows batch file .bat the
% symbol must be doubled to 'escape' the character:
Code: Select all
nconvert -out jpeg -q 80 -o "C:\A\Output\%%.jpeg" C:\A\Input\*.emf
In a 'drag and drop' action the input files are deleted, in this case after they have been read rather than moved, which can be achieved by adding
-D to the code:
Code: Select all
nconvert -out jpeg -q 80 -D -o "C:\A\Output\%%.jpeg" C:\A\Input\*.emf
To resize the pixel dimensions of the output images by 200% the code
-resize 200%% 200%% may be added to give the final batch file code you require:
Code: Select all
nconvert -resize 200%% 200%% -out jpeg -q 80 -D -o "C:\A\Output\%%.jpeg" C:\A\Input\*.emf
Note that due to a limitation on the use of quotes (" ") with wildcards (*) in NConvert, the following restrictions apply, as determined by my tests:
-Quotes may not be placed around the input term;
-The path to the file name of the input files must not contain any spaces, but the file name may contain spaces.
Any editing or other errors excepted...
In the event of any development work being required, testing may be simplified slightly by omitting the
-D term until the code is otherwise working.
Test on a copy of your input EMF files!!