SnagIt Image Conversion from Command Line

  • 1
  • Question
  • Updated 4 years ago
  • Answered

I want to convert a TGA file to a PNG file without using the Batch Converter user interface. Is there a way to accomplish this either through command line or COM automation? 

While /ob from the command line opens the Batch Conversion user interface, this requires user input that I want to avoid.

Photo of paul


  • 1 Post
  • 0 Reply Likes

Posted 5 years ago

  • 1
Photo of Adam Marks

Adam Marks, Software Developer

  • 126 Posts
  • 21 Reply Likes
Hello Paul,

I have not tried it but I believe you could automate some of this with the Snagit COM API.

You would need to setup a ImageCapture that has a Input of siiGraphicFile which will indicate a image file will be used for the input of this capture. The COM API does not let you specify a filename, instead it pops up a file-open dialog to get the image file to be used as input.

Then the same ImageCapture should be setup to have a Output of sioFile and then use OutputImageFile to set a specific file to output to along with indicating it should be output as PNG format. For this case I think you can use the OutputImageFile or OutputImageFile2 properties to setup the filename.

The only issue with this approach is that File-Open dialog that will appear where you would still need to interact with the UI to open the .tga file. You might be able to automate this also by simulating keystrokes and sending them to the File-Open dialog to automate the opening of a given graphics file.

More information on the Snagit COM API is here

Photo of cartedit


  • 2 Posts
  • 0 Reply Likes
I use Snagit10 and set the dpi to 600 so that I can take a screen captured image and insert it into Photoshop and Illustrator in order to create a CMYK file for high resolution printing.  I am so glad that I have not switched to version 11.  This is an essential reason I use Snagit.  How dumb it was to make this change.
Photo of Kelly Mullins

Kelly Mullins, TechSmith Employee & Helper

  • 2931 Posts
  • 690 Reply Likes
Hi cartedit,

What trouble are you having?
Does your trouble relate to this particular topic or is it something else?

Let us know.
Photo of cartedit


  • 2 Posts
  • 0 Reply Likes
The problem is that Version 11 does not provide for 600 dpi captures.  Is that not correct?