1

I need a tool launched from the command line (or API) with an argument like "D:\image1.png" which copies the image into the clipboard including its DPI resolution.

Requirements:

  • Windows
  • up to 20€ (preferably free)
  • not written in .NET (.NET clipbaord access methods cannot copy image DPI into clipboard)

1 Answer 1

1

Irfan View.

It is an image viewer, but it has rich offer of command-line options which allow to perform actions without opening the user interface.

For copying the file into the clipboard, the command is:

i_view32.exe "D:\image1.png" /clipcopy /killmesoftly

And yes, it copies DPI resolution correctly into the clipboard along with the image.

IrfanView is freeware – but only for private, non-commercial use (that means at home).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.