command line tool for print picture?

2020-02-12 05:39发布

My program need to print a curve, my solution is changing the curve into a picture, and this picture file (xxx.png) can be printed by using the default windows picture printing tool(right click the mouse on top of the file, and select print).

but I don't want user do this job manually, I need a command line tool to do this:

printPicture xxx.png

is there a tool like this?

ps: free/open source

edit: right click the file, and select "print", then I can print this file, How can I do it in command line ?

7条回答
啃猪蹄的小仙女
2楼-- · 2020-02-12 06:10

IrfanView is able to do this. Here's a list of command line options for this application.

The following should work:

i_view32 xxx.png /print

If you want to print to a printer other than the default printer, specify the printer name:

i_view32 xxx.png /print="PrinterName"
查看更多
登录 后发表回答