Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Print photos for passport in Word using QM
#4
IrfanView is an image editor that uses command line programming that is easily automated through QM "run" command.

http://www.irfanview.com/

First you'll need to consider what dpi you'll use to print and then calculate the dimensions of the picture accordingly.

To set the dpi of an image using IrfanView:
i_view32.exe c:\passport.jpg /dpi=(x,y)

Size the picture using IrfanView:
i_view32.exe c:\passport.jpg /resize=(x,y) /aspectratio

To merge files using IrfanView:
Syntax: /panorama=(X,file1,...,fileN) First parameter (X) is the direction: 1 = horizontal, 2 = vertical.
i_view32.exe /panorama=(1,c:\c:\passport.jpg,c:\passport.jpg,c:\passport.jpg,c:\passport.jpg)
i_view32.exe /panorama=(2,c:\c:\passport.jpg,c:\passport.jpg,c:\passport.jpg,c:\passport.jpg)

This will print to your default printer. There is a way to specify printer as well:
i_view32.exe c:\passport.jpg /print

To specify an output file:
/convert "passport2.jpg"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)