Skip to content

Commit

Permalink
Merge pull request #85 from Zheaoli/manjusaka/fix-83
Browse files Browse the repository at this point in the history
🐛 Fix image date exif parse error #83
  • Loading branch information
besscroft authored Jun 29, 2024
2 parents 52bc7c3 + e32f076 commit aead305
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/admin/upload/FileUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function FileUpload() {
exifObj.make = tags?.Make?.description
exifObj.model = tags?.Model?.description
exifObj.bits = tags?.['Bits Per Sample']?.description
exifObj.data_time = tags?.DateTime?.description
exifObj.data_time = tags?.DateTimeOriginal?.description !== '' ? tags?.DateTimeOriginal?.description : tags?.DateTime?.description;
exifObj.exposure_time = tags?.ExposureTime?.description
exifObj.f_number = tags?.FNumber?.description
exifObj.exposure_program = tags?.ExposureProgram?.description
Expand Down Expand Up @@ -253,7 +253,7 @@ export default function FileUpload() {
exifObj.make = tags?.Make?.description
exifObj.model = tags?.Model?.description
exifObj.bits = tags?.['Bits Per Sample']?.description
exifObj.data_time = tags?.DateTime?.description
exifObj.data_time = tags?.DateTimeOriginal?.description !== '' ? tags?.DateTimeOriginal?.description : tags?.DateTime?.description;
exifObj.exposure_time = tags?.ExposureTime?.description
exifObj.f_number = tags?.FNumber?.description
exifObj.exposure_program = tags?.ExposureProgram?.description
Expand Down Expand Up @@ -666,4 +666,4 @@ export default function FileUpload() {
<FileUploadHelpSheet />
</div>
)
}
}

0 comments on commit aead305

Please sign in to comment.