Update ExifUtils.kt
This commit is contained in:
@@ -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(" "),
|
||||
|
||||
Reference in New Issue
Block a user