forked from lodev09/react-native-exify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
167 lines (166 loc) · 4.13 KB
/
types.ts
File metadata and controls
167 lines (166 loc) · 4.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
/**
* From Android's ExifInterface Tags
* Normalized for both IOS and Android
*/
export interface ExifTags {
SensorLeftBorder?: number
SensorBottomBorder?: number
DefaultCropSize?: number
GPSTrackRef?: string
GPSSpeedRef?: string
GPSSpeed?: number
GPSMapDatum?: string
GPSLatitudeRef?: string
GPSLatitude?: number
GPSDifferential?: number
GPSDestLatitudeRef?: string
GPSDestDistanceRef?: string
GPSHPositioningError?: string
GPSDestDistance?: number
GPSDestBearing?: number
GPSDateStamp?: string
GPSAltitudeRef?: number
GPSAltitude?: number
GPSDestLatitude?: number
GPSImgDirection?: number
GPSDOP?: number
GPSTrack?: number
GPSVersionID?: string
GPSLongitude?: number
GPSDestLongitudeRef?: string
GPSImgDirectionRef?: string
GPSProcessingMethod?: string
GPSMeasureMode?: string
GPSLongitudeRef?: string
GPSSatellites?: string
GPSAreaInformation?: string
GPSDestBearingRef?: string
GPSStatus?: string
GPSTimeStamp?: string
GPSDestLongitude?: number
SensorTopBorder?: number
Copyright?: string
PreviewImageStart?: number
SubSecTimeDigitized?: string
SubSecTime?: string
SubfileType?: number
SpectralSensitivity?: string
SpatialFrequencyResponse?: string
DNGVersion?: number
Sharpness?: number
PixelXDimension?: number
SceneCaptureType?: number
ExposureTime?: number
RelatedSoundFile?: string
AspectFrame?: number
Flash?: number
SceneType?: string
OECF?: string
NewSubfileType?: number
PixelYDimension?: number
MakerNote?: string
ShutterSpeedValue?: number
LightSource?: number
UserComment?: string
GainControl?: number
ISOSpeedRatings?: string
FocalPlaneResolutionUnit?: number
FocalPlaneXResolution?: number
YCbCrCoefficients?: number
FocalLengthIn35mmFilm?: number
LensMake?: string
LensModel?: string
LensSpecification?: number[]
ISO?: number
FlashpixVersion?: number[]
StripOffsets?: number
SensingMethod?: number
FlashEnergy?: number
FocalLength?: number
FNumber?: number
MeteringMode?: number
FocalPlaneYResolution?: number
ExposureBiasValue?: number
ExposureProgram?: number
SubjectDistance?: number
ThumbnailImageLength?: number
Compression?: number
ExposureMode?: number
ExposureIndex?: number
WhiteBalance?: number
DateTimeOriginal?: string
RowsPerStrip?: number
DateTimeDigitized?: string
ExifVersion?: number[]
Saturation?: number
CustomRendered?: number
Contrast?: number
ComponentsConfiguration?: number[]
ColorSpace?: number
SubjectLocation?: number
ThumbnailImageWidth?: number
BrightnessValue?: number
Model?: string
InteroperabilityIndex?: string
CompressedBitsPerPixel?: number
ApertureValue?: number
DeviceSettingDescription?: string
JPEGInterchangeFormat?: number
StripByteCounts?: number
YCbCrSubSampling?: number
DigitalZoomRatio?: number
PreviewImageLength?: number
YCbCrPositioning?: number
FileSource?: string
Artist?: string
Make?: string
CFAPattern?: string
WhitePoint?: number
SamplesPerPixel?: number
SubjectArea?: number[]
JPEGInterchangeFormatLength?: number
ResolutionUnit?: number
PrimaryChromaticities?: number
PlanarConfiguration?: number
TransferFunction?: number
SubSecTimeOriginal?: string
Orientation?: number
PhotometricInterpretation?: number
MaxApertureValue?: number
ImageDescription?: string
SensorRightBorder?: number
YResolution?: number
BitsPerSample?: number
ImageUniqueID?: string
DateTime?: string
ImageWidth?: number
ReferenceBlackWhite?: number
ImageLength?: number
SubjectDistanceRange?: number
XResolution?: number
Software?: string
[key: string]: unknown
}
/**
* Exify `writeAsync` result data
*/
export interface ExifyWriteResult {
/**
* The URI of the image that was written.
* On IOS: If input URI is an asset, this will be new URI created.
*
* This will return exactly the same as the input URI if the input URI is from a local file.
*/
uri: string
/**
* A newly created asset ID on IOS.
* Writing exif metadata into an asset file will create a new asset file.
*
* @platform ios
*/
assetId?: string
/**
* Normalized Exif tags
*/
tags?: ExifTags
}