Command line utility :: Format of configuration file
Section [Main]
1) Source_folder = string with path to image files you want to be converted
2) Source_ext = string with extension (type) of image files you want to be converted
3) Dest_path = string with path to the destination folder
4) Dest_ext = string with extension (type) of converted image files
5) Same_as_source = 1 if you want to save each converted image file to the its source folder and = 0 if you want to save it to a folder specified in "Dest_path"
6) Use_file_list = string with path to a text file with list of files you want to be converted
7) Show_transp = 1 if you want to show/read transparency as a specified color, = 0 otherwise
8) Transp_red = red component of specified color (from 0 to 255)
9) Transp_green = green component of specified color (from 0 to 255)
10) Transp_blue = blue component of specified color (from 0 to 255)
11) Read_Subfolders = 1 if you want to process files from subfolders of folder defined by "Source" parameter and = 0 therwise
Examples:
1. It will process all TIF files from C:\ to C:\Result
[Main]
Source_folder=C:\
Source_ext=TIF
Dest_path=C:\Result
Same_as_source=0
Dest_ext=jpg
Use_FileList=
Read_Subfolders=0
2. It will process all files described in filelist.txt.
[Main]
Source_folder=C:\
Source_ext=TIF
Dest_path=C:\Result
Same_as_source=0
Dest_ext=jpg
Use_FileList=c:\filelist.txt
Read_Subfolders=0
Example of filelist.txt:
c:\folder1\file1.bmp
c:\folder1\file2.jpg
c:\folder2\folder3\file2.png
Section [File_name]
1) Mask = string with a radical of converted filename, if you set it to
2) Mask_prefix = string with a text prefix that will be added to filename of converted files
3) Mask_suffix = string with a text suffix that will be added to filename of converted files
4) Start_number = initial number that will be used to careate a filename of converted files
5) Replace = 1 if you want to replace a substring in filename and = 0 otherwise
6) Substring_1 = string to be replaced in filename
7) Substring_2 = string to be replaced with in filename
8) Lower_case_ext = 1 if you want to get converted files with lower case extension and = 0 otherwise
9) Change_case = 0 for no change of converted filenames and = 1 for changing case according to "Case_option"
10) Case_option = 0 for lower case and = 1 for upper case
Example:
It will add a text prefix "new_" and a numerical suffix "0001", "0002" etc. Section [GIF]
1) Transparent = 1 if you want to create transparent GIF files and = 0 otherwise
[GIF] Section [JPG]
1) Use_quality = 1 if you want the program to use quality value to create JPG files and = 0 if you want to set a size of converted JPG files
1. It will create progressive JPG files using quality = 75 Section [TIF]
1) Compression = compression method used to create TIF files (1 - no compression; 2 - Huffman; 3 - PackBits (RLE); 4 - CCITT Group 3, 1D; 5 - CCITT Group 3, 2D; 6 - CCITT Group 4, 2D; 7 - LZW; 8 - JPEG)
[TIF] Section [PNG]
1) Transparent = 1 if you want to create transparent PNG files and = 0 otherwise
[PNG] Section [BMP]
1) Compression = 1 if you want to create compressed BMP files and = 0 otherwise
[BMP] Section [PCX]
1) Compression = 1 if you want to create compressed PCX files and = 0 otherwise
[PCX] Section [TGA]
1) Compression = 1 if you want to create compressed TGA files and = 0 otherwise
[TGA] Section [JP2]
1) Quality = quality for converted JP2 files (from 1 to 100%)
[JP2] Section [Multipage]
1) Option = 0 if you want to convert each multipage file to another, = 1 if you want to save all processed files to one GIF/TIF file, = 2 if you want to save every page of converted file as a separate file
[Multipage] Section [Colors]
1) Option = 1 if you want to use output "Bits per sample" and "Sample per pixel" values from original file, = 2 if you want to use optimum values which will be calculated for each converted file, = 3 if you want to define the output color resolution values yourself
[Colors] Section [DPI]
1) Option = 0 if you want to copy information about dpi resolution from original file, = 1 if you want to set your own values for dpi resolution
[DPI] Section [Save]
1) Copy_alpha = 1 if you want to copy information about alpha channel (transparency) from original file and = 0 otherwise
[Save] See also:
[File_name]
Mask=
Mask_suffix=####
Start_number=1
Replace_name=0
Substring_1=
Substring_2=
Lower_case_ext=1
Change_case=0
2) Auto_transp = 1 if you want the program to take transparency color in auto mode and = 0 otherwise
3) Color_red = red component of transparency color (from 0 to 255)
4) Color_green = green component of transparency color (from 0 to 255)
5) Color_blue = blue component of transparency color (from 0 to 255)
6) Interlaced = 1 if you want to create interlaced GIF files and = 0 otherwise
Example:
Transparent=1
Auto_transp=1
Color_red=0
Color_green=0
Color_blue=1
Interlaced=0
2) Quality = quality for converted JPG files (from 1 to 100%)
3) Size = appoximate size of converted JPG files (from 1 to 999 kb)
4) Progressive = 1 if you want to create progressive JPG files and = 0 otherwise
5) Color_space = color model used to create JPG files (0 - YCbCr; 1 - CMYK; 2 - RGB; 3 - YCbCrK; 4 - Gray)
Example:
[JPG]
Use_quality=1
Quality=75
Size=50
Progressive=1
Color_model=0
2. It will create JPG files, an appoximate size of the files will be 50 kb
[JPG]
Use_quality=0
Quality=75
Size=50
Progressive=0
Color_model=0
Example:
Compression=2
2) Auto_transp = 1 if you want the program to take transparency color in auto mode and = 0 otherwise
3) Color_red = red component of transparency color (from 0 to 255)
4) Color_green = green component of transparency color (from 0 to 255)
5) Color_blue = blue component of transparency color (from 0 to 255)
6) Interlaced = 1 if you want to create interlaced PNG files and = 0 otherwise
7) Compression = level of compression, the value can vary from 0 (no compression) to 9 (best compression)
Example:
Transparent=1
Auto_transp=1
Color_red=0
Color_green=0
Color_blue=1
Interlaced=0
Compression=5
Example:
Compression=1
Example:
Compression=1
Example:
Compression=1
Example:
Quality=75
Example:
Option=0
2) Bits_per_sample = number of bits used to store information about each color channel (from 1 to 8)
3) Samples_per_pixel = number of color channels used to store information about one pixel (can be 1 or 3)
Example:
Option=1
Bits_per_sample=8
Samples_per_pixel=3
2) Dpi_x = horizontal resolution for converted files (from 1 to 10000 dpi)
3) Dpi_y = vertical resolution for converted files (from 1 to 10000 dpi)
Example:
Option=2
X_dpi=72
Y_dpi=72
2) Copy_iptc = 1 if you want to copy IPTC information from original file and = 0 otherwise
3) Copy_exif = 1 if you want to copy EXIF information from original file and = 0 otherwise
4) Overwrite = 0 if you want to replace (overwrite) existing file, = 1 if you want to be asked about overwriting and = 2 if you do not want to overwrite existing file
5) Same_date = 1 if you want to set converted file date same as original file and = 0 otherwise
6) Save_path = 0 if you want to save all files into one (destination) folder, 1 if you want to to convert with saving path info according to the "Save_path_option"
7) Save_path_option = 1 if you want to to convert with saving path info of an original file starting from a root folder and = 2 if you want to to convert with saving path info starting from a current folder
8) Delete_files = 1 if you want to delete successfully processed (source) files and = 0 otherwise. Note, it will not delete a source file if a converted file has the same name and type.
Example:
Copy_alpha=0
Copy_iptc=1
Copy_exif=1
Overwrite=1
Same_date=0
Save_path=0
Save_path_option=1
Delete_files=0