To scan for images recursively, append the letter R to the application name. For example, rename it to
PhotoResize400R.exe.
-kX - specify output file size in kB (same as PhotoResizeKX.exe). The conversion may be
significantly slower, because multiple tries my be required to create file that fits the required
size.
-aWxH - crop + resize to WxH pixels. The central part of the image is kept (same as
PhotoResizeAWxH.exe).
-WxHxC - extend canvas + resize to WxH pixels. C is canvas color in hexadecimal RRGGBB web
format.
-qX - specify compression quality (1-100). Default quality is 60. Filename flag L set quality to
30, while H set quality to 90.
-s - invert the "skip files that are already smaller than the specified size" flag.
-u - invert the "update only (skip files already exising in the destination folder)" flag.
-x11, -x12, -x21, -x22 - set chroma subsampling level (default is -x22).
-e - preserve file modification date (in addition to file creation date, which is preserved always).
-XofN - only process a fraction of all files (can be used to split large jobs). Concrete numbers
must be used in place of X and N. X must be in range 1..N. For example: -1of2, -2of2.
-zXXX - XXX is a wildcard filter (*.* by default) for file processing. * means any number of
characters, ? represents single character. For example *blue*.* would only process files with
the word blue in their file names.
-a+, -a-, -a* - enable, disable or preserve (use it if the original image used it) arithmetic
compression in JPG files.
-if X<Y, -if Y>=X - only process portrait images (skip landscapes).
-if Y<X, -if X>=Y - only process landscape images (skip portraits).
The
settings
PhotoResize.exe
apply
-w200
to
all
files
C:\img1.jpg
specified
-w300
after
them.
C:\img1.jpg
Example:
C:\img2.jpg
This command resizes img1.jpg to 200 pixels width, then resizes img1.jpg and img2.jpg to 300 pixels
width.
Customizing destination folder and file name
Customize output path and name using the -c switch. If used without more options, it redirects output
to current folder (to be compatible with previous versions).
You can use any characters and the following variables:
<PATH> - path from the ROOT to currently processed file. This variable is empty unless the tool
is used to resize files in subfolders of the given folder. In that case, it holds the relative path to
the subfolder.
Example: To put files resized files into folder C:\Resized Images, use "-cC:\Resized
Images\<PATH><NAME>.jpg" (the quates are needed, because, there is a space in the path.
Customizing tool's standard output
Using -o parameter has two effects. It eliminates the need to press ENTER when the tool has finished
and it allows to customize the report producted by the tool.
Examples
PhotoResize400.exe
-o
"C:\img1.jpg"
Silently resize img1.jpg. Nothing is sent to standard output and the application exits without waiting for
user interaction.
PhotoResize400.exe
"-o<SRCNAME><EN>"
"C:\MyImgs"
Resizes all images in folder MyImgs and writes original filenames to standard output. An end-of-line
character is placed after each filename.