getPluginsList = (filters, rootPath) => {
  let pluginsList = [];
  for (const filterItem of filters) {
    if (typeof filterItem !== 'undefined') {
      for (const glob of filterItem.glob) {
        if (minimatch(rootPath, glob)) {
          for (const plugin of filterItem.plugins) {
            pluginsList = merge(pluginsList, [plugin]);
          }
          break;
        }
      }
    }
  }
  return pluginsList;
}
Get plugins list for image path
@param {array} filters
@param {string} rootPath