Update ExifUtils.kt

This commit is contained in:
2025-10-26 06:36:10 +08:00
parent 7d4b3712e7
commit 4ad07dc345
@@ -31,7 +31,7 @@ suspend fun parseExif(data: ByteArray): ExifResult? {
val d = exif.convertToPhotoMetadata()
return ExifResult(
shutterInfo = "${d.focalLength?.roundToInt()}mm  f/${d.fNumber}  ${formatExposureTime(d.exposureTime)}s  ISO-${d.iso}",
shutterInfo = "${d.focalLength?.roundToInt()}mm  f/${d.fNumber}  ${formatExposureTime(d.exposureTime ?: 0.0)}  ISO-${d.iso}",
// TODO: Un-hardcode this in the future
cameraInfo = if (d.cameraModel == "ILCE-6700") "Sony ILCE-6700 + Tamron 18-300 F3.5-6.3" else listOfNotNull(
listOfNotNull(d.cameraMake?.lowercase()?.replaceFirstChar { it.titlecase() }, d.cameraModel).ifEmpty { null }?.joinToString(" "),