Ashish's Image Resize Utility Documentation

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:

extensionExtension of files to be processed. Should in above form i.e *.xxx. Only one extension can be given at a time.
outputFormatThe format in which processed images should be saved. Possible value is one of following: jpg bmp png or gif
dirnameinFully qualified input directory path
destdirdestFully qualified output directory path
scaleFactorScale factor of the image. Value is always > 0.00 and <=>
overwriteFlag that determines if the program should overwrite files in output directory. The default value is false.
brdrWThe width (in px) of border to be applied to the image on each side.
borderargbColor of the border. The value is in form of ARGB (A value is currently ignored )
errorFileError file to which errors and exceptions are written to. If file exists the data is appended else new file is created.
wMarkFontNameFont used to render the watermark.
wMarkFontSizeFont size used to render the watermark.
wMarkLeftDistance of the watermark from right border of the image
wMarkTopDistance of the watermark from top border of the image
wMarkTextText to be displayed as watermark.
newFilePrefixPrefix for resized files.
overwriteIf 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.
fontargbColor used for the watermark font. The value is in form of ARGB.