@runnerpro/backend 1.6.20 → 1.6.22
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.
|
@@ -283,7 +283,7 @@ const rotateOrientationImage = (data, filePath, image = null, mimetype) => __awa
|
|
|
283
283
|
if (!image)
|
|
284
284
|
image = yield jimp_1.default.read(filePath);
|
|
285
285
|
const orientation = yield exifr_1.default.orientation(data);
|
|
286
|
-
let rotate =
|
|
286
|
+
let rotate = 180;
|
|
287
287
|
// if ([7, 8].includes(orientation)) rotate = 90;
|
|
288
288
|
// else if ([3].includes(orientation)) rotate = 180;
|
|
289
289
|
// else if ([5, 8].includes(orientation)) rotate = -90;
|