We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Using KotlinScript, I cannot set params because method names in closure start with a hyphen.
Please add a param method to DefaultMagickSpec
param
DefaultMagickSpec
val resize_images by creating(com.eowise.imagemagick.tasks.Magick::class) { group = "build" val root = "static/images/advanced-search" val width = 100 convert(root, PatternSet().include("*.png")) into("static/images/advanced-search.$width") actions(closureOf<DefaultMagickSpec> { param( "-background", "none") param( "-resize", "${width}x") inputFile() outputFile() }) }
Workaround 1: Use the params list and add manually in the closure
params.add(SimpleParam("-background")) params.add(SimpleParam("none")) params.add(SimpleParam("-resize")) params.add(SimpleParam("${width}x"))
Workaround 2: Call methodMissing manually in the closure
this.methodMissing("-background", arrayOf(none)) this.methodMissing("-resize", arrayOf("${width}x"))
The text was updated successfully, but these errors were encountered:
Using the stack closure in Kotlin script is also broken. You need to add the parentheses as parameters as well.
Sorry, something went wrong.
No branches or pull requests
Using KotlinScript, I cannot set params because method names in closure start with a hyphen.
Please add a
param
method toDefaultMagickSpec
Workaround 1: Use the params list and add manually in the closure
Workaround 2: Call methodMissing manually in the closure
The text was updated successfully, but these errors were encountered: