|
Post by (X) on Oct 18, 2023 19:59:22 GMT 1
Although it is 'cool' to use GB32 to call IrfanView, one might argue that using it directly might be easier. I have to agree and say that the only reason I am doing it this way is to try to make image file conversion easier from inside a GFA program. The more I work with IrfanView the more I appreciate what it can do. I feel like I've been living under a rock for not knowing about its usefulness until now.
Here are my transcribed notes about IrfanView that I've include in the demo:
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' COMMAND LINE OPTIONS... ' (from IrfanView help document) ' ' See the file "i_options.txt" (IrfanView folder) for the most recent version ' on all command line options. ' ' Command line options allow you to set some functions of IrfanView before the ' viewer is launched. ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' THESE COMMAND LINE OPTIONS ARE SUPPORTED IN IRFANVIEW: ' ' /one -force 'Only one instance' ' /fs -force Full Screen display ' /bf -force 'Fit images to desktop' display option ' /title=text -set window title to 'text' ' /pos=(x,y) -move the window to x,y (if display option allows that) ' /display=(x,y,w,h,zoom,sX,sY) -set position, size, zoom and scroll position ' of the IrfanView window and image ' /convert=filename -save/convert input image(s)/file(s) to "filename" ' and CLOSE IrfanView ' (see Pattern page for additional filename options) ' /makecopy -for convert: if destination file exists, save new ' file as copy: (1), (2), (3) etc. ' /slideshow=txtfile -play slideshow with the files from 'txtfile' ' /slideshow=folder -play slideshow with the files from 'folder' ' /reloadonloop -reload input source used in /slideshow when list ' finished ' /filelist=txtfile -use filenames from "txtfile" as input, see examples below ' /file=filename(s) -use filename(s) as input, see examples below ' /thumbs -open Thumbnails window ' /killmesoftly -close all IrfanView instances (exit after command line) ' /cmdexit -close current IrfanView after command line processing ' /fs_exit -ESC closes fullscreen and IrfanView (if started in ' fullscreen mode) ' /closeslideshow -close slideshow and close IrfanView after the last ' image ' /page=X -open page number X from a multipage input image ' /crop=(x,y,w,h,C) -crop input image: x-start, y-start, width, height, ' C-start corner (0-4) ' /print -print input image to default printer and close IrfanView ' /print="Name" -print input image to specific printer and close IrfanView ' /resize=(w,h) -resize input image to w (width) and h (height) ' /resize_long=X -resize input image: set long side to X ' /resize_short=X -resize input image: set short side to X ' /resample -for resize: use Resample option (better quality) ' /aspectratio -used for /resize, keep image proportions ' /capture=X -capture the screen or window (see examples below) ' /ini -use the Windows folder for INI/LST files (read/save) ' /ini="Folder" -use the folder "Folder" for INI/LST files (read/save) ' /clippaste -paste image from the clipboard ' /clipcopy -copy image to the clipboard ' /silent -don't show error messages for command line read/save errors ' /invert -invert the input image (negative) ' /dpi=(x,y) -change DPI values, set DPIs for scanning ' /scan -acquire the image from the TWAIN device - show TWAIN dialog ' /scanhidden -acquire the image from the TWAIN device - hide TWAIN dialog ' /batchscan=(options) -simulate menu: File->Batch Scanning, see examples below ' /bpp=BitsPerPixel -change color depth of the input image to BitsPerPixel ' /swap_bw -swap black and white color ' /gray -convert input image to grayscale ' /rotate_r -rotate input image to right ' /rotate_l -rotate input image to left ' /hflip -horizontal flip ' /vflip -vertical flip ' /filepattern="x" -browse only specific files ' /sharpen=X -open image and apply the sharpen filter value X ' /effect=(X,p1,p2) -apply effect filter X, see below for examples ' /contrast=X -open image and apply the contrast value X ' /bright=X -open image and apply the brighntess value X ' /gamma=X -open image and apply the gamma correction value X ' /advancedbatch -apply Advanced Batch Dialog options to image (from ' INI file) ' /hide=X -hide toolbar, status bar, menu and/or caption of the ' main window (see examples below) ' /transpcolor=(r,g,b) -set transparent color if saving as GIF/PNG/ICO ' /info=txtfile -write image infos to "txtfile" ' /fullinfo -used for /info, write EXIF, IPTC and Comment data ' /shortinfo -used for /info, write just file index and name ' /append=tiffile -append image as (TIF) page to "tiffile" ' /multitif=(tif,files) -create multipage TIF from input files ' /multipdf=(pdf,files) -create multipage PDF from input files ' /panorama=(X,files) -create panorama image from input files; X=direction (1 or 2) ' /jpgq=X -set JPG save quality ' /tifc=X -set TIF save compression ' /wall=X -set image as wallpaper; see below for /random and examples ' /extract=(folder,ext) -extract all pages from a multipage/multiframe file ' /import_pal=palfile -import and apply a special palette to the image (PAL format) ' /export_pal=palfile -export image palette to file (PAL format) ' /jpg_rotate=(options) -JPG lossless rotation, see examples below ' /hotfolder="folder" -start Hotfolder option with a specific folder ' /monitor=X -start EXE-Slideshow on monitor X ' /window=(x,y,w,h) -set EXE-Slideshow window position and size ' /clearmonitors -play EXE-slideshow on one monitor, clear all ' other monitors ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' NOTES: ' ' - Only lower case options are supported (don't type any UPPERCASE letters for ' options) ! ' ' - Use "" for filenames/paths with spaces! ' For example: "C:\images\dummy test file.jpg" ' ' - Input filename (if required) is always the first parameter ' (unless /file or /filelist is used). ' ' - Write always the FULL paths for filenames (incl. drive letter). ' ' - You can combine several options in one command. ' ' - The commands will be processed in the order you write them. ' ' - Wildcards supported only for /convert, /multitif, /multipdf, /panorama, ' /print, /info, /jpg_rotate and /extract. ' ' - Do not set any other commands after /batchscan or /scan, they won't be ' processed. ' ' - Maximal command line length is limited to 4096 chars: use Drag&Drop, /file ' or /filelist for very large lists. ' ' - Most settings are loaded from the INI file. Using prepared INIs and ' /ini=folder option, you can extend the possibilities. ' ' - IrfanView exit code is 0. If /convert or /print is used, there is 1 or 2 ' also possible, for load/save errors. ' ' - Please test (e.g. conversions) first in GUI mode. ' Some options may need to be set first (saved to INI file). ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /convert ' ' The command line converts file : 'C:\test.bmp' to 'C:\test.jpg' without GUI. ' ' i_view32.exe "C:\test.bmp" /convert="C:\test.jpg" ' ' OTHER EXAMPLES: ' ' i_view32.exe "C:\*.jpg" /convert=d:\temp\*.gif ' i_view32.exe "C:\*.jpg" /resize=(500,300) /aspectratio /resample /convert=d:\temp\*.png ' i_view32.exe "C:\*.jpg" /resize_long=300 /aspectratio /resample /convert=d:\temp\outimage_###.jpg ' i_view32.exe /filelist="C:\mypics.txt" /resize=(500,300) /aspectratio /resample /convert=d:\temp\*.png ' i_view32.exe "C:\test.bmp" /convert=C:\test_$Wx$H.jpg)) ' i_view32.exe "C:\test.bmp" /convert=C:\temp\$N.jpg ' i_view32.exe "C:\test.bmp" /convert=C:\temp\*.tif ' i_view32.exe "C:\test.bmp" /makecopy /convert=C:\temp\$N.jpg ' i_view32.exe "C:\test.bmp" /resize=(100,100) /resample /aspectratio /convert=d:\$N_thumb.jpg ' i_view32.exe "C:\test.bmp" /aspectratio /convert=d:\temp\$T(%Y%m%d)\test_$Wx$H.jpg ' i_view32.exe "C:\test.bmp" /convert=$D $ N.jpg ' i_view32.exe "C:\*.bmp" /convert=$D $ N.jpg ' i_view32.exe "C:\*.jpg" /advancedbatch /convert=C:\temp\*.jpg ' i_view32.exe "C:\test.bmp" /transpcolor=(255, 255, 255) /convert=C:\giftest.gif ' ' (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 an ' image, including the full path OR path relative to "i_view32.exe". ' ' i_view32.exe /slideshow="C:\mypics.txt" /reloadonloop ' i_view32.exe /slideshow="C:\images\" ' i_view32.exe /slideshow="C:\images\" /reloadonloop ' i_view32.exe /slideshow="C:\images\*.jpg" ' i_view32.exe /slideshow="C:\images\test*.jpg" ' i_view32.exe /slideshow="C:\images\" /filepattern="*.jpg;*.gif;*.png" /reloadonloop ' ' You have to close IrfanView after the last image from the TXT file, if not ' /closeslideshow is used. ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /closeslideshow ' ' IrfanView will be closed after the last image from 'C:\mypics.txt'. ' ' i_view32.exe /slideshow=C:\mypics.txt /closeslideshow) ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /thumbs ' ' This opens 'image1.jpg' and displays thumbnails from folder/directory 'C:\test'. ' ' i_view32.exe C:\test\image1.jpg /thumbs ' ' This displays thumbnails from folder/directory 'C:\test'. ' ' i_view32.exe C:\test\ /thumbs ' i_view32.exe /thumbs C:\test\ ' ' This loads filenames from TXT file and display as thumbnails. ' ' i_view32.exe /filelist="C:\mypics.txt" /thumbs ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /file ' ' This option is nice if you need to send the input file(s) as last parameter. ' ' i_view32.exe /file=C:\image.jpg REM (same as "i_view32.exe C:\image.jpg") ' i_view32.exe /convert="C:\result\*.tif" /file=C:\image1.jpg ' i_view32.exe /convert="C:\result\*.tif" /file=C:\image1.jpg, "C:\spacy image2.jpg", C:\image3.jpg ' i_view32.exe i_view32.exe /thumbs /file=C:\image1.jpg, "C:\spacy image2.jpg", C:\image3.jpg ' ' HINT: You can create a special IrfanView desktop (or "Send to") shortcut ' which can use the files from Drag&Drop with other options like: ' ' i_view32.exe [options] /file="<some_image_file>" ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /filelist ' ' i_view32.exe /filelist=C:\mypics.txt ' i_view32.exe /filelist=C:\mypics.txt /convert=d:\test\*.jpg ' i_view32.exe /filelist=C:\mypics.txt /thumbs ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: close ' ' Close IrfanView and terminate all instances. ' ' i_view32.exe /killmesoftly ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /page ' ' Opens page number 3 from the multipage image: 'C:\test.tif'. ' ' i_view32.exe C:\test.tif /page=3 ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /display ' ' Load image and set window position and size, zoom to 50%, scroll positions to 0. ' ' i_view32.exe C:\test.jpg /display=(100, 100, 300, 300, 50, 0, 0) ' ' Load image and set window width, zoom to 50%, scroll positions to 30 (height ' and position=default/old). ' ' i_view32.exe C:\test.jpg /display=(,,300,,50,30,30) ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /crop ' ' START CORNER VALUES: ' 0=Left-Top ' 1=Right-Top ' 2=Left-Bottom ' 3=Right-Bottom ' 4=Center ' ' Opens 'C:\test.jpg' and crops: ' x-start =10 ' y-start =10 ' width =300 ' height =300 ' corner =Left-Top (in pixels) ' ' i_view32.exe "C:\test.jpg" /crop=(10, 10, 300, 300, 0) ' ' Opens 'C:\test.jpg' and crops: ' x-start =10 ' y-start =10 ' width =300 ' height =300 ' corner =center ' ' i_view32.exe C:\test.jpg /crop=(10, 10, 300, 300, 4) /convert=C:\giftest.gif ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /print ' ' This opens 'C:\test.jpg', prints the image to default printer and closes IrfanView. ' ' i_view32.exe C:\test.jpg /print ' ' Opens 'C:\test.jpg', print the image to specific printer and close IrfanView. ' ' i_view32.exe C:\test.jpg /print="Printer Name" ' ' Print all JPGs from "C:\" and close IrfanView. ' ' i_view32.exe C:\*.jpg /print ' ' NOTE: The actual settings from the INI file are used. ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /resize ' ' Open 'C:\test.jpg' and resample: width=300, height=300. ' (Note: Resample uses the active resample filter from the INI file.) ' ' i_view32.exe C:\test.jpg /resize=(300, 300) /resample ' ' Open 'C:\test.jpg' and resize: width=max. 300, height=max. 300, proportional. ' ' i_view32.exe C:\test.jpg /resize=(300, 300) /aspectratio ' ' Open 'C:\test.jpg' and resample: long side=300, short side=proportional. ' ' i_view32.exe C:\test.jpg /resize_long=300 /aspectratio /resample ' ' Open 'C:\test.jpg' and resize: width=300, height=original. ' ' i_view32.exe C:\test.jpg /resize=(300, 0) ' ' Open 'C:\test.jpg' and resize: width=300, height=proportional. ' ' i_view32.exe C:\test.jpg /resize=(300, 0) /aspectratio ' ' Open 'C:\test.jpg' and resize: width=150%, height=150%. ' ' i_view32.exe C:\test.jpg /resize=(150, p, 150, p) ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /capture ' ' CAPTURE VALUES: ' 0=whole screen ' 1=current monitor, where mouse is located ' 2=foreground window ' 3=foreground window - client area ' 4=rectangle selection ' 5=object selected with the mouse ' 6=start in capture mode (can't be combined with other commandline options) ' 7=fixed rectangle (using capture dialog values or direct input) ' ' Capture the whole screen. ' ' i_view32.exe /capture=0 ' ' Start in Capture mode, use last used capture dialog settings. ' ' i_view32.exe /capture=6 ' ' Capture the screen rectangle from GUI/Capture dialog (=INI values). ' ' i_view32.exe /capture=7 ' ' Capture the screen rectangle: x (0), y (0), width (800), height (600). ' ' i_view32.exe /capture=7=(0,0,800,600) ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' ADVANCED EXAMPLES : ' ' Capture foreground window and save result as file. ' ' i_view32.exe /capture=2 /convert=C:\test.jpg ' ' Capture foreground window and save result as file; the filename contains time stamp. ' ' i_view32.exe /capture=2 /convert=C:\capture_$U(%d%m%Y_%H%M%S).jpg ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /ini ' ' i_view32.exe C:\test.jpg /ini="C:\temp\") ' i_view32.exe /ini ' i_view32.exe C:\test.jpg /ini) ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /clippaste ' ' i_view32.exe /clippaste ' i_view32.exe /clippaste /convert=C:\test.gif ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /clipcopy ' ' 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: /dpi ' ' i_view32.exe C:\test.jpg /dpi=(72, 72) ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /scan ' ' With the scan command, you can only combine: /print, /dpi, /gray and /convert. ' ' i_view32.exe /scan ' i_view32.exe /scanhidden ' i_view32.exe /scanhidden /dpi=(150,150) ' i_view32.exe /scan /convert=C:\test.gif ' i_view32.exe /scan /append=C:\test.tif ' i_view32.exe /scan /append=C:\test.pdf ' i_view32.exe /scanhidden /convert=C:\test.gif ' i_view32.exe /scanhidden /gray /convert=C:\test.gif ' i_view32.exe /print /scan ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /batchscan=(options) ' ' OPTIONS=all 8 options from the batch scanning dialog: ' filename, ' index, ' increment, ' digits, ' skip, ' dest-folder, ' save-extension, ' multi-tif ' ' i_view32.exe /batchscan=(scanfile, 1, 1, 2, 1, C:\temp, bmp, 0) ' i_view32.exe /batchscan=(scanfile,1,1,2,1,C:\temp,bmp,0) /dpi=(150,150) ' i_view32.exe /batchscan=(scanfile, 1, 1, 2, 0, C:\temp, tif, 1) ' i_view32.exe /batchscan=("crazy, filename",1,1,2,0,"C:\temp\crazy, (folder)",tif,1) ' i_view32.exe /batchscan=(scanfile, 1, 1, 2, 1, C:\temp, bmp, 0) /scanhidden ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /bpp ' ' Sets color depth in bpp (Bits per Pixel). ' ' SUPPORTED BPP-VALUES: ' 1 ' 4 ' 8 ' 24 ' ' Opens 'C:\test.jpg' and reduce to 256 colors. ' ' i_view32.exe C:\test.jpg /bpp=8 ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /filepattern ' ' Go to folder "C:\images" and load JPGs only in the browse/file list. ' ' i_view32.exe C:\images\ /filepattern="*.jpg" ' ' Go to folder "C:\images" and show JPG thumbnails only. ' ' i_view32.exe C:\images\ /thumbs /filepattern="*.jpg" ' ' Go to folder "C:\images" and show JPG with names "123*" as thumbnails. ' ' i_view32.exe C:\images\ /thumbs /filepattern="123*.jpg" ' ' Go to folder "C:\images" and load only JPG, GIF and PNG files in the browse/file list. ' ' i_view32.exe C:\images\ /filepattern="*.jpg;*.gif;*.png" ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /effect=(effect-nr,param1,param2) ' ' EFFECT-NR VALUES: (from Effect-Browser dialog): ' ' 1=Blur ' 2=Gaussian Blur ' ... ' 42=Color Temperature ' 80=AltaLux ' ' Apply Median filter, parameter=3. ' ' i_view32.exe C:\test.jpg /effect=(6, 3, 0) ' ' Apply Blur-2 filter, parameter1=3, parameter2=50. ' ' i_view32.exe C:\test.jpg /effect=(2, 3, 50) ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /sharpen ' ' i_view32.exe C:\test.jpg /sharpen=33 ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /hide ' ' VALUES: (can be combined (add values) ' ' Toolbar 1 ' Status bar 2 ' Menu bar 4 ' Caption 8 ' ' Open 'C:\test.jpg', hide toolbar only. ' ' i_view32.exe C:\test.jpg /hide=1 ' ' Open 'C:\test.jpg', hide toolbar and status bar. ' ' i_view32.exe C:\test.jpg /hide=3 ' ' Open 'C:\test.jpg', hide caption and menu bar. ' ' i_view32.exe C:\test.jpg /hide=12 ' ' Open 'C:\test.jpg', hide all. ' ' i_view32.exe C:\test.jpg /hide=15 ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /info : ' ' i_view32.exe C:\test.jpg /info=C:\test.txt ' i_view32.exe C:\test.jpg /info=C:\jpgs.txt /fullinfo ' i_view32.exe C:\*.jpg /info=C:\jpgs.txt ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /append ' ' i_view32.exe C:\test.jpg /append=C:\test.pdf ' ' Opens 'C:\test.jpg ' and appends it as a page to 'C:\test.tif'. ' ' i_view32.exe C:\test.jpg /append=C:\test.tif ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /multitif (/multipdf is similar/identical) ' ' SYNTAX: /multitif=(tifname,file1,...,fileN) ' ' First file is the name of the result TIF file, wildcards for file1-N are allowed. ' ' i_view32.exe /multitif=(C:\test.tif, C:\test1.bmp, C:\dummy.jpg)))) ' ' Create multipage TIF ('C:\test.tif') from 2 other files. ' ' i_view32.exe /multitif=(C:\test.tif, C:\*.bmp) ' i_view32.exe /multitif=(C:\test.tif, filelist=C:\mypics.txt) ' i_view32.exe /multitif=(C:\test.tif, C:\*.bmp, C:\dummy.jpg, C:\123*.gif) ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /panorama ' ' SYNTAX: /panorama=(X,file1,...,fileN) ' ' First parameter 'X' is the direction: ' 1=horizontal, ' 2=vertical, wildcards for file1-N are allowed. ' ' Create horizontal panorama image from 2 other files. ' ' i_view32.exe /panorama=(1, C:\test1.bmp, C:\dummy.jpg) ' i_view32.exe /panorama=(1, C:\test.tif, C:\*.bmp) ' ' i_view32.exe /panorama=(2, C:\test.tif, C:\*.bmp, C:\dummy.jpg, C:\123*.gif) ' i_view32.exe /panorama=(2, C:\test.tif, "C:\crazy, comma filename.jpg") ' i_view32.exe /panorama=(2, filelist=C:\mypics.txt) ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /jpgq ' ' QUALITY RANGE: ' 1 .. 100 ' ' Opens 'C:\test.jpg' and saves it as 'C:\new.jpg', quality=75. ' ' i_view32.exe C:\test.jpg /jpgq=75 /convert=C:\new.jpg ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /tifc ' ' COMPRESSIONS: ' 0=None ' 1=LZW ' 2=Packbits ' 3=Fax3 ' 4=Fax4 ' 5=Huffman ' 6=JPG ' 7=ZIP ' ' Open 'C:\test.jpg' and save it as 'C:\new.tif', compression=Fax4. ' ' i_view32.exe C:\test.jpg /tifc=4 /convert=C:\new.tif ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /wall ' ' WALL VALUES: ' 0 (centered), ' 1 (tiled), ' 2 (stretched), ' 3 (stretched-proportional) ' ' Open 'C:\test.jpg' and set is as wallpaper (centered). ' ' i_view32.exe C:\test.jpg /wall=0 ' ' Get random file from the folder/list and set as wallpaper. ' ' i_view32.exe C:\images\*.jpg /random /wall=0 /killmesoftly ' i_view32.exe /filelist=C:\mypics.txt /random /wall=0 /killmesoftly ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /extract ' ' Open 'C:\multipage.tif' and save all pages to folder 'C:\temp' as single JPGs. ' ' i_view32.exe C:\multipage.tif /extract=(C:\temp, jpg) ' i_view32.exe C:\*.tif /extract=(C:\temp, jpg) ' i_view32.exe /filelist=C:\mypics.txt /extract=(C:\temp, jpg) ' i_view32.exe C:\animated.gif /extract=(C:\temp, bmp) ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /hotfolder ' ' Scan 'C:\input\' folder for new images and display them. Uses timer settings ' from the Hotfolder menu/dialog. ' ' i_view32.exe /hotfolder="C:\input\" ' ' Display an image in fullscreen mode, wait for new files in 'C:\input\' folder ' and display them. ' ' i_view32.exe "C:\input\test.jpg" /fs /hotfolder="C:\input\" ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: slideshow ' ' Start standalone slideshow on monitor 2. ' ' MySlideshow.exe /monitor=2 ' ' Start standalone slideshow in top left corner, window size 800x600. ' ' MySlideshow.exe /window=(0,0,800,600) ' ' Start standalone slideshow on monitor 2, clear monitor 1 (and all other ' monitors). ' ' MySlideshow.exe /monitor=2 /clearmonitors ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /advancedbatch ' ' ' This opens C:\test.jpg', applies Advanced Batch options from the INI file and ' save as new file. ' ' i_view32.exe C:\test.jpg /advancedbatch /convert=C:\image.jpg ' ' Some misc. Advanced Batch options are not supported: ' overwrite, ' delete, ' subfolders, ' all pages ' ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' EXAMPLE FOR: /jpg_rotate=(options) ' ' options=all 8 options from the JPG lossless dialog: ' ' transformation, ' optimize, ' EXIF date, ' current date, ' set DPI, ' DPI value, ' marker option, ' custom markers ' ' Note: this option will overwrite the original file(s)! ' ' VALUES: ' ' Transformation None (0), Vertical (1) ... Auto rotate (6) ' Optimize 0 or 1 ' Set EXIF date 0 or 1 ' Keep current date 0 or 1 ' Set DPI 0 or 1 ' DPI value number ' Marker option Keep all (0), Clean all (1), Custom (2) ' ' Custom markers values (can be combined (add values)): ' Keep Comment 1 ' Keep EXIF 2 ' Keep IPTC 4 ' Keep others 8 ' ' ' Auto rotate, optimize, set EXIF date as file date, set DPI to 300, keep all markers ' ' i_view32.exe C:\test.jpg /jpg_rotate=(6, 1, 1, 0, 1, 300, 0, 0) /cmdexit ' ' Auto rotate, optimize, set EXIF date as file date, keep EXIF and IPTC markers ' ' i_view32.exe C:\test.jpg /jpg_rotate=(6, 1, 1, 0, 0, 0, 2, 6) /cmdexit ' ' Rotate 90, optimize, use current file date, clean all markers ' ' i_view32.exe C:\test.jpg /jpg_rotate=(3, 1, 0, 1, 0, 0, 1, 0) /cmdexit ' ' For all JPGs: Auto rotate, optimize, set EXIF date as file date, keep all markers ' ' i_view32.exe C:\images\*.jpg /jpg_rotate=(6,1,1,0,0,0,0,0) /cmdexit '
|
|