Skip to content
Aurélien edited this page Jan 31, 2015 · 2 revisions
task addShadow(type: com.eowise.imagemagick.tasks.Magick) {
    convert 'img', { include '*.png' }
    into 'outputDir'
    actions {
        inputFile()
        stack {
            +clone
            -background('black')
            -shadow('25x3+0+1.5')
        }
        +swap
        -background('none')
        -layers('merge')
        +repage
        outputFile()
    }
}
Clone this wiki locally