You are on page 1of 3

------------------------------------------------------------------------------File : 'options.

txt' - Command line options for IrfanView


Author: Irfan Skiljan
E-Mail: irfanview@gmx.net
WWW : http://www.irfanview.com
------------------------------------------------------------------------------List of all command line options supported in IrfanView:
-------------------------------------------------------/one
/fs
/bf
/title=text
/pos=(x,y)
/convert=filename
/slideshow=txtfile
/thumbs
/killmesoftly
/closeslideshow
/page=X
/crop=(x,y,w,h)
/print
/print="Name"
/resize=(w,h)
/resample=(w,h)
/capture=X
/ini
/ini="Folder"
/clippaste
/clipcopy
/silent
/invert
/scan
/bpp=BitsPerPixel
/swap_bw
/gray
/rotate_r
/rotate_l
/filepattern="x"

force "only one instance"


force Full Screen
force Best Fit to desktop
set window title to "text"
move IrfanView window to x,y
convert input file to "filename" and CLOSE IrfanView
play slideshow with the files from "txtfile"
force thumbnails
close all IrfanView instances
close slideshow and IrfanView after the last image
open page number X from a multipage input image
crop input image: x-start, y-start, width, height
print (all pages) to default printer and CLOSE IrfanView
print (all pages) to specific printer and CLOSE IrfanView
resize input image to w (width) and h (height)
resample input image to w (width) and h (height)
capture the screen or window
use the Windows folder for INI/LST files (read/save)
use the folder "Folder" for INI/LST files (read/save)
paste image from the clipboard
copy image to the clipboard
don't show messages for command line read/save errors
invert the input image
acquire the image from the TWAIN device
change color depth of the input image to BitsPerPixel
swap black and white color
convert input image to grayscale
rotate input image to right
rotate input image to left
browse only specific files

Notes:
- Only lower case options are supported !
- Input file name (if required) is always the first paramater!
- Wildcards supported only for /convert and /print
Example for conversion:
i_view32.exe c:\test.bmp /convert=c:\giftest.gif
=> Convert file: 'c:\test.bmp' to 'c:\giftest.gif' without GUI ;-)
i_view32.exe c:\*.jpg /convert=d:\temp\*.gif
i_view32.exe c:\*.jpg /resample=(500,300) /convert=d:\temp\*.png
i_view32.exe c:\*.jpg /print
(Note: supported are all IrfanView read/save formats except audio/video)
Example for slideshow:
i_view32.exe /slideshow=c:\mypics.txt
(Note: The file 'c:\mypics.txt' contains, in each line, a name of the image,
including the full path OR path relative to "i_view32.exe".
A hard return is needed at the end of each line)

Example for closeslideshow:


i_view32.exe /slideshow=c:\mypics.txt /closeslideshow
=> IrfanView will be closed after the last image from 'c:\mypics.txt'
Example for thumbnails:
i_view32.exe c:\test\image1.jpg /thumbs
=> open 'image1.jpg' and display thumbnails from directory 'c:\test'
or
i_view32.exe c:\test /thumbs
=> display thumbnails from directory 'c:\test'
Example for close:
i_view32.exe /killmesoftly
=> close IrfanView and terminate all instances
Example for page:
i_view32.exe c:\test.tif /page=3
=> Open page number 3 from the multipage image 'c:\test.tif'
Example for crop:
i_view32.exe c:\test.jpg /crop=(10,10,300,300)
=> Open 'c:\test.jpg' and crop: x-start=10, y-start=10, width=300, height=300
Example for print:
i_view32.exe c:\test.jpg /print
=> Open 'c:\test.jpg', print the image to default printer and close IrfanView
i_view32.exe c:\test.jpg /print="Printer Name"
=> Open 'c:\test.jpg', print the image to specific printer and close IrfanView
Example for resize:
i_view32.exe c:\test.jpg /resize=(300,300)
=> Open 'c:\test.jpg' and resize: width=300, height=300
i_view32.exe c:\test.jpg /resize=(300,0)
=> Open 'c:\test.jpg' and resize: width=300, height=proportional
i_view32 c:\test.jpg /resize=(150p,150p)
=> Open 'c:\test.jpg' and resize: width=150%, height=150%
Example for resample:
i_view32.exe c:\test.jpg /resample=(300,300)
=> Open 'c:\test.jpg' and resample: width=300, height=300
i_view32.exe c:\test.jpg /resample=(0,300)
=> Open 'c:\test.jpg' and resample: width=proportional, height=300
i_view32 c:\test.jpg /resample=(50p,70p)
=> Open 'c:\test.jpg' and resample: width=50%, height=70%
Example for capture:
i_view32.exe /capture
=> Capture the whole screen and show the image in IrfanView
i_view32.exe /capture=1
=> Capture the foreground window and show the image in IrfanView
i_view32.exe /capture=2
=> Capture the client area of the foreground window and show the image
Example for ini:
i_view32.exe /ini
i_view32.exe c:\test.jpg /ini
i_view32.exe c:\test.jpg /ini="c:\temp\"
Example for clipboard paste:

i_view32.exe /clippaste
i_view32.exe /clippaste /convert=c:\test.gif
Example for clipboard copy:
i_view32.exe c:\test.jpg /clipcopy
i_view32.exe c:\test.jpg /clipcopy /killmesoftly
Example for /invert:
i_view32.exe c:\test.jpg /invert
Example for /scan:
i_view32.exe /scan
i_view32.exe /scan /convert=c:\test.gif
Example for /bpp:
Example: i_view32.exe c:\test.jpg /bpp=8
Supported BPP-values: 1, 4, 8 and 24 (decrease/increase color depth)
=> Open 'c:\test.jpg' and reduce to 256 colors
Example for /filepattern:
i_view32.exe c:\images\ /thumbs /filepattern="*.jpg"
=> Go to folder "c:\images\" and show JPG thumbnails only
i_view32.exe c:\images\ /thumbs /filepattern="123*.jpg"
=> Go to folder "c:\images\" and show JPG names "123*" as thumbnails

You might also like