@runnerpro/backend 1.6.25 → 1.6.26

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.
@@ -38,9 +38,9 @@ const reduceSizeImage = (file, newWidth = 100, quality = 80) => __awaiter(void 0
38
38
  const imageHeight = dimensions.height;
39
39
  const newHeight = Math.round((imageHeight * newWidth) / imageWidth);
40
40
  let image = yield jimp_1.default.read(filePath);
41
+ image = yield image.rotate(90);
41
42
  image = yield image.resize(newWidth, newHeight);
42
43
  image = yield image.quality(quality);
43
- image = yield image.rotate(90);
44
44
  // @ts-ignore
45
45
  image = yield image.getBufferAsync(jimp_1.default.MIME_JPEG);
46
46
  if (typeof file === 'object')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runnerpro/backend",
3
- "version": "1.6.25",
3
+ "version": "1.6.26",
4
4
  "description": "A collection of common backend functions",
5
5
  "exports": {
6
6
  ".": "./lib/cjs/index.js"