Skip to content

Commit

Permalink
fix(asset-server-plugin): Correctly handle EXIF rotation on source fi…
Browse files Browse the repository at this point in the history
…les (#3260)

Closes #3259
  • Loading branch information
Anddrrew authored Dec 17, 2024
1 parent 1f8a177 commit d606d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/asset-server-plugin/src/transform-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export async function transformImage(
options.fit = 'inside';
}

const image = sharp(originalImage);
const image = sharp(originalImage).rotate();
try {
await applyFormat(image, parameters.format, parameters.quality);
} catch (e: any) {
Expand Down

0 comments on commit d606d7a

Please sign in to comment.