@tryghost/image-transform 1.2.6 → 1.2.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.
Files changed (2) hide show
  1. package/lib/transform.js +3 -0
  2. package/package.json +3 -3
package/lib/transform.js CHANGED
@@ -86,6 +86,9 @@ const unsafeResizeFromBuffer = async (originalBuffer, options = {}) => {
86
86
  // Disable the internal libvips cache - https://sharp.pixelplumbing.com/api-utility#cache
87
87
  sharp.cache(false);
88
88
 
89
+ // Limit the concurrency of sharp tasks - https://sharp.pixelplumbing.com/api-utility#concurrency
90
+ sharp.concurrency(1);
91
+
89
92
  // It is safe to set animated to true for all formats, because if the input image doesn't contain animation
90
93
  // nothing will change.
91
94
  let animated = options.animated ?? true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/image-transform",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "repository": "https://github.com/TryGhost/SDK/tree/main/packages/image-transform",
5
5
  "author": "Ghost Foundation",
6
6
  "license": "MIT",
@@ -22,7 +22,7 @@
22
22
  "c8": "7.13.0",
23
23
  "mocha": "10.2.0",
24
24
  "should": "13.2.3",
25
- "sinon": "15.0.3"
25
+ "sinon": "15.0.4"
26
26
  },
27
27
  "dependencies": {
28
28
  "@tryghost/errors": "^1.2.1",
@@ -31,5 +31,5 @@
31
31
  "optionalDependencies": {
32
32
  "sharp": "^0.30.0"
33
33
  },
34
- "gitHead": "cf56126d88e83961e52e001031cc8c3f43fd050a"
34
+ "gitHead": "fdddca8236ffcf6db746e87140913112facdb382"
35
35
  }