Skip to content

Commit

Permalink
Merge tag '0.3.3'
Browse files Browse the repository at this point in the history
Hollo 0.3.3
  • Loading branch information
dahlia committed Dec 19, 2024
2 parents 9b4796f + 31c9234 commit cd89fc5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ To be released.
[#65]: https://github.com/dahlia/hollo/issues/65


Version 0.3.3
-------------

Released on December 19, 2024.

- Fixed a bug where generated thumbnails had been cropped incorrectly
if the original image had not the EXIF orientation metadata. [[#76]]


Version 0.3.2
-------------

Expand Down
5 changes: 4 additions & 1 deletion src/media.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ export async function uploadThumbnail(
const originalMetadata = await original.metadata();
let width = originalMetadata.width!;
let height = originalMetadata.height!;
if (originalMetadata.orientation !== 1) {
if (
originalMetadata.orientation != null &&
originalMetadata.orientation !== 1
) {
// biome-ignore lint/style/noParameterAssign:
original = original.clone();
original.rotate();
Expand Down

0 comments on commit cd89fc5

Please sign in to comment.