Skip to content

Commit cd89fc5

Browse files
committed
Merge tag '0.3.3'
Hollo 0.3.3
2 parents 9b4796f + 31c9234 commit cd89fc5

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

CHANGES.md

+9
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ To be released.
2121
[#65]: https://github.com/dahlia/hollo/issues/65
2222

2323

24+
Version 0.3.3
25+
-------------
26+
27+
Released on December 19, 2024.
28+
29+
- Fixed a bug where generated thumbnails had been cropped incorrectly
30+
if the original image had not the EXIF orientation metadata. [[#76]]
31+
32+
2433
Version 0.3.2
2534
-------------
2635

src/media.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ export async function uploadThumbnail(
2525
const originalMetadata = await original.metadata();
2626
let width = originalMetadata.width!;
2727
let height = originalMetadata.height!;
28-
if (originalMetadata.orientation !== 1) {
28+
if (
29+
originalMetadata.orientation != null &&
30+
originalMetadata.orientation !== 1
31+
) {
2932
// biome-ignore lint/style/noParameterAssign:
3033
original = original.clone();
3134
original.rotate();

0 commit comments

Comments
 (0)