We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ca09dd commit bfabf55Copy full SHA for bfabf55
index.js
@@ -109,6 +109,8 @@ async function optimizeSVG(sourcePath) {
109
async function optimizeBitmap(sourcePath, format,
110
{ width, height, scale, keepRatio = true }) {
111
let image = sharp(sourcePath);
112
+
113
+ image.rotate(); // based on exif data
114
115
if(scale) {
116
let metadata = await image.metadata();
0 commit comments