From 1a01871cfc7a6405ed1140c7ed415e170843e40d Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Tue, 1 Jul 2025 01:13:14 +0200 Subject: refactor: update media processing to use width and height instead of aspect ratio --- apps/web/src/lib/storage/storage-service.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apps/web/src/lib/storage/storage-service.ts') diff --git a/apps/web/src/lib/storage/storage-service.ts b/apps/web/src/lib/storage/storage-service.ts index 5582ae29..65b3c134 100644 --- a/apps/web/src/lib/storage/storage-service.ts +++ b/apps/web/src/lib/storage/storage-service.ts @@ -94,7 +94,8 @@ class StorageService { type: mediaItem.type, size: mediaItem.file.size, lastModified: mediaItem.file.lastModified, - aspectRatio: mediaItem.aspectRatio, + width: mediaItem.width, + height: mediaItem.height, duration: mediaItem.duration, }; @@ -118,7 +119,8 @@ class StorageService { type: metadata.type, file, url, - aspectRatio: metadata.aspectRatio, + width: metadata.width, + height: metadata.height, duration: metadata.duration, // thumbnailUrl would need to be regenerated or cached separately }; -- cgit v1.3.1