This file shows examples on how you could call CONV2JPG from batch files. ----------------------------------------------------------------------------- This example converts all the .gif images in the images directory and creates JPEG files in the same directory. All the JPEG files will fit into a 512x512 window. The compression ratio is 150 which is a quite hard compression. EXAMPLE1.BAT: for %%f in (e:\images\*.gif) do call CONV2JPG %%f e:\images\*.jpg 150 512 :END ----------------------------------------------------------------------------- This converts all the graphic files in a directory, no matter what fileformat they originally have, to JPEG files in the jpegs directory using the original x/y size. It's using the default compression ratio of 50. EXAMPLE2.BAT: for %%f in (e:\images\*.*) do call CONV2JPG %%f e:\images\jpegs\*.jpg :END ----------------------------------------------------------------------------- This example shows how to use the CONV2JPG to resize and REPLACE the original jpeg files in the jpegs directory. The files will all fit within an 100x100 window and have a compression ratio of 150. The orginal files will be replaced and lost. There is no way to get the original files back. EXAMPLE3.BAT: for %%f in (e:\images\jpegs\*.jpg) do call CONV2JPG %%f %%f 150 100 :END ----------------------------------------------------------------------------- This example shows how to use the CONV2JPG as a drag&drop application from for example the File Manager. Create a New Program Item in a Program Manager Group which calls this batch-file. This example creates a JPEG copy with the origin image in the output directory. It's using the a compression ratio of 150. All the JPEG files will fit into a 100x100 window. EXAMPLE4.BAT: CONV2JPG %1 e:\images\jpegs\*.jpg 150 100 :END /end of file