Skip to content

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

Open
mrnejc wants to merge 3 commits intoarne-strout-icrossing:masterfrom
mrnejc:master
Open

Added option to provide more than one convert command per target task#10
mrnejc wants to merge 3 commits intoarne-strout-icrossing:masterfrom
mrnejc:master

Conversation

@mrnejc
Copy link

@mrnejc mrnejc commented Aug 31, 2013

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant