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 then a radical of converted file will be a filename of a source file
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.
[File_name]
Mask= Mask_prefix=new_
Mask_suffix=####
Start_number=1
Replace_name=0
Substring_1=
Substring_2=
Lower_case_ext=1
Change_case=0
Section [GIF]
1) Transparent = 1 if you want to create transparent GIF files and = 0 otherwise
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:
[GIF]
Transparent=1
Auto_transp=1
Color_red=0
Color_green=0
Color_blue=1
Interlaced=0
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
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:
1. It will create progressive JPG files using quality = 75
[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
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)
Example:
[TIF]
Compression=2
|