node-automator 1.4.6 → 1.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,6 +10,7 @@ class CompressCommand extends BaseCommand {
10
10
  const dst = get_full_path(data.dst, "FILE");
11
11
  const options = data.options || {};
12
12
  let image = await Jimp.read(src);
13
+ image.scale(options.scale || 1);
13
14
  image.quality(options.quality || 80);
14
15
  await image.writeAsync(dst);
15
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-automator",
3
- "version": "1.4.6",
3
+ "version": "1.4.7",
4
4
  "description": "Execute automation with yaml configuration(compatible with json)",
5
5
  "main": "index.js",
6
6
  "repository": {