fix: show real image dimensions in right pane for DNG/RAW files

The preview endpoint now returns X-Original-Width/Height headers with
dimensions read from Sharp metadata (or ExifTool for RAW files). The
frontend stores these in FileEntry and the ImageViewer prefers them over
the browser's naturalWidth/naturalHeight, which reflects the resized
preview rather than the original sensor dimensions.
This commit is contained in:
SnapOtter
2026-05-12 22:13:58 +08:00
parent 8c1526559b
commit 2d17fd4903
7 changed files with 105 additions and 14 deletions
+2
View File
@@ -631,6 +631,8 @@ export function ToolPage() {
src={originalBlobUrl}
filename={fname}
fileSize={fsize}
originalWidth={currentEntry?.originalWidth}
originalHeight={currentEntry?.originalHeight}
{...(isLivePreview && previewTransform
? {
cssRotate: previewTransform.rotate,