From 5c62b1803123faef7dfc95814e996e38fb5cf542 Mon Sep 17 00:00:00 2001 From: IsaacInsoll <30609296+IsaacInsoll@users.noreply.github.com> Date: Mon, 24 Nov 2025 13:45:04 +1000 Subject: [PATCH 1/2] Android: Fix return type of ISO Returning an array is inconsistent with IOS and also gives some numbers that can't even be easily converted to the 'real' ISO you just get back automatically when this field is a string. --- android/src/main/java/com/lodev09/exify/ExifyTags.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/lodev09/exify/ExifyTags.kt b/android/src/main/java/com/lodev09/exify/ExifyTags.kt index a1acc19..c90654e 100644 --- a/android/src/main/java/com/lodev09/exify/ExifyTags.kt +++ b/android/src/main/java/com/lodev09/exify/ExifyTags.kt @@ -68,7 +68,7 @@ val EXIFY_TAGS = arrayOf( arrayOf("double", ExifInterface.TAG_FOCAL_PLANE_X_RESOLUTION), arrayOf("double", ExifInterface.TAG_FOCAL_PLANE_Y_RESOLUTION), arrayOf("int", ExifInterface.TAG_GAIN_CONTROL), - arrayOf("array", ExifInterface.TAG_ISO_SPEED_RATINGS), + arrayOf("string", ExifInterface.TAG_ISO_SPEED_RATINGS), arrayOf("string", ExifInterface.TAG_IMAGE_UNIQUE_ID), arrayOf("int", ExifInterface.TAG_LIGHT_SOURCE), arrayOf("string", ExifInterface.TAG_MAKER_NOTE), From 0812c1ec9fc6868a23473edec57ac0cdb445808f Mon Sep 17 00:00:00 2001 From: IsaacInsoll <30609296+IsaacInsoll@users.noreply.github.com> Date: Mon, 24 Nov 2025 15:45:33 +1000 Subject: [PATCH 2/2] fix types --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index c0175ae..389abe9 100644 --- a/src/types.ts +++ b/src/types.ts @@ -63,7 +63,7 @@ export interface ExifTags { LightSource?: number UserComment?: string GainControl?: number - ISOSpeedRatings?: number[] + ISOSpeedRatings?: string FocalPlaneResolutionUnit?: number FocalPlaneXResolution?: number YCbCrCoefficients?: number