diff options
| author | Maze Winther <mazewinther@gmail.com> | 2025-07-01 01:13:14 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2025-07-01 01:13:14 +0200 |
| commit | 1a01871cfc7a6405ed1140c7ed415e170843e40d (patch) | |
| tree | be6251a9cddeacf8462e4daff0e05015ffda25a0 /apps/web/src/lib/storage/storage-service.ts | |
| parent | 9b37ce6610eeba26fc2b1b1d2589a7e9ba5e6c00 (diff) | |
| download | opencut-1a01871cfc7a6405ed1140c7ed415e170843e40d.tar.gz | |
refactor: update media processing to use width and height instead of aspect ratio
Diffstat (limited to 'apps/web/src/lib/storage/storage-service.ts')
| -rw-r--r-- | apps/web/src/lib/storage/storage-service.ts | 6 |
1 files changed, 4 insertions, 2 deletions
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
};
|
