image-steam
Advanced tools
Comparing version 0.63.2 to 0.63.3
@@ -0,1 +1,7 @@ | ||
# 0.63.3 - June 10 2022 | ||
* ***(FIX)*** `sharp@0.31.2` resolves [rotation bug](https://github.com/lovell/sharp/issues/3391). | ||
* ***(FIX)*** Orientations for 5 & 7 were computed incorrectly. | ||
# 0.63.2 - June 10 2022 | ||
@@ -2,0 +8,0 @@ |
@@ -8,3 +8,3 @@ module.exports = function (context, stepInfo) { | ||
if (img.info.orientation) { | ||
// http://www.impulseadventure.com/photo/exif-orientation.html | ||
// https://sirv.com/help/articles/rotate-photos-to-be-upright | ||
switch (img.info.orientation) { | ||
@@ -25,3 +25,3 @@ case 2: // UpMirrored | ||
context.sharp.flip(); // y | ||
degrees = (degrees + 270) % 360; | ||
degrees = (degrees + 90) % 360; | ||
if (degrees === 180) degrees = 0; | ||
@@ -35,3 +35,3 @@ else if (degrees === 0) degrees = 180; | ||
context.sharp.flip(); // y | ||
degrees = (degrees + 90) % 360; | ||
degrees = (degrees + 270) % 360; | ||
if (degrees === 180) degrees = 0; | ||
@@ -38,0 +38,0 @@ else if (degrees === 0) degrees = 180; |
{ | ||
"name": "image-steam", | ||
"version": "0.63.2", | ||
"version": "0.63.3", | ||
"description": "A simple, fast, and highly customizable realtime image manipulation web server built atop Node.js.", | ||
@@ -60,3 +60,3 @@ "main": "index.js", | ||
"semaphore": "^1.1.0", | ||
"sharp": "^0.30.2", | ||
"sharp": "^0.31.2", | ||
"xxhash": "^0.3.0", | ||
@@ -63,0 +63,0 @@ "yargs": "^17.3.1" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13224143
+ Addedsharp@0.31.3(transitive)
- Removedsharp@0.30.7(transitive)
Updatedsharp@^0.31.2