Skip to content

Commit db06c70

Browse files
authored
Android: Fix return type of ISO (#17)
* 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. * fix types
1 parent 00da8d1 commit db06c70

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

android/src/main/java/com/lodev09/exify/ExifyTags.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ val EXIFY_TAGS = arrayOf(
6868
arrayOf("double", ExifInterface.TAG_FOCAL_PLANE_X_RESOLUTION),
6969
arrayOf("double", ExifInterface.TAG_FOCAL_PLANE_Y_RESOLUTION),
7070
arrayOf("int", ExifInterface.TAG_GAIN_CONTROL),
71-
arrayOf("array", ExifInterface.TAG_ISO_SPEED_RATINGS),
71+
arrayOf("string", ExifInterface.TAG_ISO_SPEED_RATINGS),
7272
arrayOf("string", ExifInterface.TAG_IMAGE_UNIQUE_ID),
7373
arrayOf("int", ExifInterface.TAG_LIGHT_SOURCE),
7474
arrayOf("string", ExifInterface.TAG_MAKER_NOTE),

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export interface ExifTags {
6363
LightSource?: number
6464
UserComment?: string
6565
GainControl?: number
66-
ISOSpeedRatings?: number[]
66+
ISOSpeedRatings?: string
6767
FocalPlaneResolutionUnit?: number
6868
FocalPlaneXResolution?: number
6969
YCbCrCoefficients?: number

0 commit comments

Comments
 (0)