code: function(args) {
              args.unshift("convert");
              var ret = execute(args.join(" "));
              if (ret.code === 127) {
                  return grunt.warn(
                      'You need to have ImageMagick installed in your PATH for this task to work.'
                  );
              }
          }
docs: Convert image with imagemagick