diff --git a/apps/web/src/components/ui/photo-viewer/ExifPanel.tsx b/apps/web/src/components/ui/photo-viewer/ExifPanel.tsx index b0f0e72a..18b2479c 100644 --- a/apps/web/src/components/ui/photo-viewer/ExifPanel.tsx +++ b/apps/web/src/components/ui/photo-viewer/ExifPanel.tsx @@ -128,6 +128,12 @@ export const ExifPanel: FC<{ value={formattedExifData.colorSpace} /> )} + {formattedExifData?.rating && formattedExifData.rating > 0 && ( + + )} {formattedExifData?.dateTime && ( { // 色彩空间 - with translation const colorSpace = translateColorSpace(exif.ColorSpace || null) + // 评分 + const rating = exif.Rating + const GPSAltitudeIsAboveSeaLevel = exif.GPSAltitudeRef === 'Above Sea Level' // GPS 信息 @@ -421,6 +424,7 @@ export const formatExifData = (exif: PickedExif | null) => { fujiRecipe: exif.FujiRecipe ? processFujiRecipe(exif.FujiRecipe) : null, exposureProgram, + rating, } } diff --git a/locales/app/en.json b/locales/app/en.json index 1867d7cb..2893f6d2 100644 --- a/locales/app/en.json +++ b/locales/app/en.json @@ -150,6 +150,7 @@ "exif.noise.reduction": "Noise Reduction", "exif.not.available": "N/A", "exif.pixels": "Pixels", + "exif.rating": "Rating", "exif.raw.category.basic": "File Information", "exif.raw.category.camera": "Camera Information", "exif.raw.category.datetime": "Date & Time", diff --git a/locales/app/jp.json b/locales/app/jp.json index e99ba5b9..4862bb3d 100644 --- a/locales/app/jp.json +++ b/locales/app/jp.json @@ -150,6 +150,7 @@ "exif.noise.reduction": "ノイズリダクション", "exif.not.available": "N/A", "exif.pixels": "ピクセル", + "exif.rating": "評価", "exif.raw.category.basic": "ファイル情報", "exif.raw.category.camera": "カメラ情報", "exif.raw.category.datetime": "日時", diff --git a/locales/app/ko.json b/locales/app/ko.json index 6828fd12..23520bea 100644 --- a/locales/app/ko.json +++ b/locales/app/ko.json @@ -150,6 +150,7 @@ "exif.noise.reduction": "노이즈 감소", "exif.not.available": "N/A", "exif.pixels": "픽셀", + "exif.rating": "평점", "exif.raw.category.basic": "파일 정보", "exif.raw.category.camera": "카메라 정보", "exif.raw.category.datetime": "날짜 및 시간", diff --git a/locales/app/zh-CN.json b/locales/app/zh-CN.json index 5cd555c6..5b1b69f5 100644 --- a/locales/app/zh-CN.json +++ b/locales/app/zh-CN.json @@ -150,6 +150,7 @@ "exif.noise.reduction": "降噪", "exif.not.available": "不可用", "exif.pixels": "像素", + "exif.rating": "评分", "exif.raw.category.basic": "文件信息", "exif.raw.category.camera": "相机信息", "exif.raw.category.datetime": "日期时间", diff --git a/locales/app/zh-HK.json b/locales/app/zh-HK.json index d68315e8..bc8b1984 100644 --- a/locales/app/zh-HK.json +++ b/locales/app/zh-HK.json @@ -150,6 +150,7 @@ "exif.noise.reduction": "降噪", "exif.not.available": "不可用", "exif.pixels": "像素", + "exif.rating": "評分", "exif.raw.category.basic": "檔案資訊", "exif.raw.category.camera": "相機資訊", "exif.raw.category.datetime": "日期時間", diff --git a/packages/builder/src/image/exif.ts b/packages/builder/src/image/exif.ts index a321d5f7..b38a3761 100644 --- a/packages/builder/src/image/exif.ts +++ b/packages/builder/src/image/exif.ts @@ -119,6 +119,7 @@ const pickKeys: Array = [ 'ScaleFactor35efl', 'ShutterSpeed', 'LightValue', + 'Rating', // GPS 'GPSAltitude', 'GPSCoordinates', diff --git a/packages/builder/src/types/photo.ts b/packages/builder/src/types/photo.ts index cdb00d88..92bc48b3 100644 --- a/packages/builder/src/types/photo.ts +++ b/packages/builder/src/types/photo.ts @@ -150,6 +150,9 @@ export interface PickedExif { // HDR 相关 MPImageType?: Tags['MPImageType'] + + // 评分 + Rating?: number } export interface ThumbnailResult {