We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08f254f commit 8bead5dCopy full SHA for 8bead5d
CHANGES.md
@@ -6,6 +6,9 @@ Version 0.3.3
6
7
To be released.
8
9
+ - Fixed a bug where generated thumbnails had been cropped incorrectly
10
+ if the original image had not the EXIF orientation metadata. [[#76]]
11
+
12
13
Version 0.3.2
14
-------------
src/media.ts
@@ -24,7 +24,10 @@ export async function uploadThumbnail(
24
const originalMetadata = await original.metadata();
25
let width = originalMetadata.width!;
26
let height = originalMetadata.height!;
27
- if (originalMetadata.orientation !== 1) {
+ if (
28
+ originalMetadata.orientation != null &&
29
+ originalMetadata.orientation !== 1
30
+ ) {
31
// biome-ignore lint/style/noParameterAssign:
32
original = original.clone();
33
original.rotate();
0 commit comments