As well as the GUI client, Slicr also includes a command line tool which you can use to automatically slice up an image. The tool, slycmd.exe, is located in the Slicr application folder.


  source [destination] [/I]
  [/A:mode /Z /V [/X:slicemode] [/P:padding] [/M:spacing] [/C]] 
  [/F:format] [/S[:filename]] [/Y] [/LOAD:filename]
  [/H | /?] [/LOG [<file>] /LOGAPPEND]  


sourceSpecifies the source image or Slicr project.
destinationSpecifies the location and/or name format of sliced images.
/IIf destination does not exist assumes that destination must be a directory.
/A:modePerforms an auto slice. Required if source is not a Slicr project. When using /A, /Z and /V must also be specified. Valid modes are: FIXED, GRID
/ZSpecifies the horizontal unit of an auto slice mode.
/VSpecifies the vertical unit of an auto slice mode.
/XSpecifies the slice mode. Valid values are EDGE and BOX.
/P:paddingSpecifies any padding around the edges of the image to ignore. Padding is in the format LEFT,TOP,RIGHT,BOTTOM. If only a single value is specified, this is used for all edges
/M:spacingSpecifies any spacing between the generated slices. Margin is in the format WIDTH,HEIGHT. If only a single value is specified, this is used for both width and height.
/CClears any existing slices before performing an auto slice. Valid only if source is a Slicr project.
/F:formatSpecifies or overrides a projects output image format. Default is as by the source project, or PNG if an image source is used. Valid formats are: BMP, GIF, JPG, PNG, TIF.
/S[:filename]Creates a Slicr project using the passed input parameters with the specified filename. filename can only be omitted if source is a Slicr project.
/YSuppresses prompting to confirm you want to overwrite an existing destination file.
/LOAD:filenameSpecifies an external file containing command line switches. Any argument above, with the exception of /LOAD, can be used in this file. Arguments can either be separated with spaces, newlines, or both.
/H or /?Display this message
/LOG <file>Writes output to a log file. If <file> is not specified, a default name will be used
/LOGAPPENDIf set and the log file already exists, new data will be appended to the file, otherwise the file is overwritten
/QUIETSuppresses most standard output
/PAUSEPrompts the user to press a key before the program ends
/NOLOGODo not display the startup banner and copyright message
/VERSIONDisplay version information only
/STATISTICSDisplay execution statistics
/NOCRASHREPORTDisable automatic crash logging and solution checking
/list-argumentsDisplays how input arguments were interpreted, then exits without performing any actions


The source, destination, /S and /LOAD arguments support file names. These filenames can either be fully qualified, or relative to the current directory.

© 2013-2023 Cyotek Ltd. All Rights Reserved.
Documentation version 0.4 (buildref #55.15583), last modified 2023-04-09. Generated 2023-04-29 14:26 using Cyotek HelpWrite Professional version 6.19.1