Usage from Command Line

A command line tool has been provided for those of you who need to process many images as part of your workflow or even if you just hate the idea of using a mouse. The command line tool is PDNBulkUpdaterCmd.exe and should be installed to your Paint.NET installation directory.

Commands

Please keep in mind that any command/argument that contains spaces or unsupported command line characters (such as < or >) must be enclosed in quotes. For example the Program Files directory contains a space and to use it as the output directory you would have to specify it as "/o:C:\Program Files". PDNBulkUpdaterCmd.exe supports the following commands:

PDNBulkUpdaterCmd.exe <source> [/o] [/dpu] [/u] [/res] [/print] [/pcnt] [/alg] [/ft] [/v0] [/v1] [/v2] [/v3] [/v4] [/oft] [/ren] [/ftprops]
  • <source> - A list of source files, directories, and/or Filters. Any argument that is not a supported command is assumed to be an input file, directory, or filter.
  • /o:<directory> - The destination directory i.e. "/o:C:\Users\John Smith\Pictures". This command supports Dynamic Path Formatting
  • /dpu:<value> - The dots per unit i.e. /dpu:96
  • /u:<in|cm> - Sets the dpu measurement to inches (in) or centimeters (cm) i.e. /u:in
  • /res:<resolution> - The output resolution i.e. /res:800x600
  • /print:<resolution> - The output resolution in dpu units i.e. /print:8.25x6.3
  • /pcnt:<percent> - Scale images by a percentage of their input size i.e. /pcnt:50
  • /alg:<algorithm> - The resampling algorithm. Valid algorithms are bicubic, super, nearest, or bilinear i.e. /alg:bicubic
  • /ft:<extension>:<property name>:<value> - Sets the value of a file type property i.e. /ft:jpg:quality:100
  • /v0 - Sets the verbosity level to output nothing
  • /v1 - Sets the verbosity level to output exceptions
  • /v2 - Sets the verbosity level to output exceptions and errors
  • /v3 - Sets the verbosity level to output exceptions, errors, and warnings
  • /v4 - Sets the verbosity level to output everything. This is the default
  • /oft:<extension> - Sets the output file type i.e. /oft:jpg. This can be any file type supported by Paint .NET
  • /ren:<file name> - Renames output files i.e. "/ren:Renamed File <i>". This command supports Dynamic Path Formatting
  • /ftprops - Prints a list of all available file type properties

Last edited May 18, 2010 at 10:05 PM by Corillian, version 7

Comments

Slagsmalsklubben Sep 21, 2015 at 6:16 PM 
Update for PDN v. 4.0 please :)

heguangm Nov 29, 2012 at 8:14 PM 
great tool: here is a list of commands to create all iphone icons from a 1024 * 1024 image

Change it to your use easily and put it in a bat file to run from anywhere:

"C:\Program Files\Paint.NET\PDNBulkUpdaterCmd.exe" "{filepath}\1024by1024.png" "/o:{filepath}" /dpu:96 /u:in /res:29x29 /alg:bicubic /v4 /oft:png "/ren:Icon-Small" /ftprops
"C:\Program Files\Paint.NET\PDNBulkUpdaterCmd.exe" "{filepath}\1024by1024.png" "/o:{filepath}" /dpu:96 /u:in /res:50x50 /alg:bicubic /v4 /oft:png "/ren:Icon-Small-50" /ftprops
"C:\Program Files\Paint.NET\PDNBulkUpdaterCmd.exe" "{filepath}\1024by1024.png" "/o:{filepath}" /dpu:96 /u:in /res:57x57 /alg:bicubic /v4 /oft:png "/ren:Icon" /ftprops
"C:\Program Files\Paint.NET\PDNBulkUpdaterCmd.exe" "{filepath}\1024by1024.png" "/o:{filepath}" /dpu:96 /u:in /res:58x58 /alg:bicubic /v4 /oft:png "/ren:Icon-Small@2x" /ftprops
"C:\Program Files\Paint.NET\PDNBulkUpdaterCmd.exe" "{filepath}\1024by1024.png" "/o:{filepath}" /dpu:96 /u:in /res:72x72 /alg:bicubic /v4 /oft:png "/ren:Icon-72" /ftprops
"C:\Program Files\Paint.NET\PDNBulkUpdaterCmd.exe" "{filepath}\1024by1024.png" "/o:{filepath}" /dpu:96 /u:in /res:114x114 /alg:bicubic /v4 /oft:png "/ren:Icon@2x" /ftprops
"C:\Program Files\Paint.NET\PDNBulkUpdaterCmd.exe" "{filepath}\1024by1024.png" "/o:{filepath}" /dpu:96 /u:in /res:512x512 /alg:bicubic /v4 /oft:png "/ren:iTunesArtwork" /ftprops