This program does not accept any parameters from commandline. It simply picks them up from the ‘ImgResz.exe.config’ file. Shown below is a typical configuration file. This file should reside in the same directory as the ‘exe’.
|
The table below gives details of what each entry in this configuration file does:
extension | Extension of files to be processed. Should in above form i.e *.xxx. Only one extension can be given at a time. |
outputFormat | The format in which processed images should be saved. Possible value is one of following: jpg bmp png or gif |
dirnamein | Fully qualified input directory path |
destdirdest | Fully qualified output directory path |
scaleFactor | Scale factor of the image. Value is always > 0.00 and <=> |
overwrite | Flag that determines if the program should overwrite files in output directory. The default value is false. |
brdrW | The width (in px) of border to be applied to the image on each side. |
borderargb | Color of the border. The value is in form of ARGB (A value is currently ignored ) |
errorFile | Error file to which errors and exceptions are written to. If file exists the data is appended else new file is created. |
wMarkFontName | Font used to render the watermark. |
wMarkFontSize | Font size used to render the watermark. |
wMarkLeft | Distance of the watermark from right border of the image |
wMarkTop | Distance of the watermark from top border of the image |
wMarkText | Text to be displayed as watermark. |
newFilePrefix | Prefix for resized files. |
overwrite | If value is 'true' then the program overwrites files in output directory. Set this to 'false' if you don't want the program to overwrite files. |
fontargb | Color used for the watermark font. The value is in form of ARGB. |