grunt-imagemagick icon indicating copy to clipboard operation
grunt-imagemagick copied to clipboard

Added option to provide more than one convert command per target task

Open mrnejc opened this issue 11 years ago • 0 comments

I had multiple files to convert, each with its own options, and it seemed illogical to create target for each conversion, so I created this fix. You can still do:

"imagemagick-convert":{
  dev:{
    args:['test/resizeme.jpg','-resize', '25x25', 'test/resized/resizeme-small.jpg']
  }
}

but you can now also do:

"imagemagick-convert":{
  dev:{
    args:[
      ['test/resizeme.jpg','-resize', '25x25', 'test/resized/resizeme-small.jpg'],
      ['test/resizeme.jpg','-resize', '15x15', 'test/resized/resizeme-tiny.jpg']
    ]
  }
}

(also replaced some tabs with spaces)

mrnejc avatar Aug 31 '13 11:08 mrnejc