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'.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="extension" value="*.jpg"/>
<add key="scaleFactor" value="0.3"/>
<add key="brdrW" value="5"/>
<add key="errorFile" value="error.log"/>
<add key="wMarkFontName" value="Calibri"/>
<add key="wMarkLeftPercent" value="1"/>
<add key="wMarkText" value="Copyright 2008, Ashish Patil "/>
<add key="wMarkFontSize" value="10"/>
<add key="wMarkTopPercent" value="90"/>
<add key="newFilePrefix" value="resz_"/>
<add key="outputFormat" value="jpg"/>
<add key="dirnamein" value="C:\Pictures"/>
<add key="destdirdest" value="D:\MyGallery\Resized"/>
<add key="overwrite" value="true"/>
<add key="fontargb" value="9fff4334"/>
<add key="borderargb" value="9fff4334"/>
</appSettings>
</configuration>
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 <= 1.00 |
| 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. |