eowise / gradle-imagemagick Goto Github PK
View Code? Open in Web Editor NEWGradle tasks to easy integrate ImageMagick
License: MIT License
Gradle tasks to easy integrate ImageMagick
License: MIT License
Using KotlinScript, I cannot set params because method names in closure start with a hyphen.
Please add a param
method to 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"))
As jcentral repository is now officially deprecated, we can't have any update since 0.5.1 on it.
Please, publish on mavenCentral again with the latest repository code (0.5.2 as stated in the docs). Latest version on mavenCentral is 0.4.0.
The path to the convert commandLine Tool is not resolved properly from gradle under Mac OS.
Please add some customizability or request the path to convert with a "which" command.
v7 uses the command line magick
instead of convert
. It still supports the convert command with backward compatibility, but magick is needed for new functionality.
i am trying from two days it show the bellow error
.converimage-twxU5jJ4Hp5gGv4_N8N7_A==/lib/arm64, /system/lib64, /product/lib64]]] couldn't find "libimagemagick.so"
what could id do please helpme.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.