Last active
November 8, 2016 15:59
-
-
Save KoloritnijClap/3d99aabe273f49374584e19b8acab067 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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