Skip to content

Instantly share code, notes, and snippets.

@KoloritnijClap
Last active November 8, 2016 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KoloritnijClap/3d99aabe273f49374584e19b8acab067 to your computer and use it in GitHub Desktop.
Save KoloritnijClap/3d99aabe273f49374584e19b8acab067 to your computer and use it in GitHub Desktop.
def procBuilder = new ProcessBuilder('convert',
"-resize", "${width}x${height}", "-crop", "${x1}+${y1}+${x2}+${y2}",
'/path/to/file', '/path/to/result/file')
def proc = procBuilder.start() // run script
//Wait until done...
proc.waitFor()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment