Interface: PhotoFile
Represents a Photo taken by the Camera written to the local filesystem.
Extends​
TemporaryFile
Properties​
height​
height:
number
The height of the photo, in pixels.
Defined in​
types/PhotoFile.ts:56
isMirrored​
isMirrored:
boolean
Whether this photo is mirrored (selfies) or not.
Defined in​
types/PhotoFile.ts:70
isRawPhoto​
isRawPhoto:
boolean
Whether this photo is in RAW format or not.
Defined in​
types/PhotoFile.ts:60
metadata?​
optional
metadata:object
Metadata information describing the captured image. (iOS only)
{Exif}​
{Exif}:
object
{Exif}.ApertureValue​
ApertureValue:
number
{Exif}.BrightnessValue​
BrightnessValue:
number
{Exif}.ColorSpace​
ColorSpace:
number
{Exif}.DateTimeDigitized​
DateTimeDigitized:
string
{Exif}.DateTimeOriginal​
DateTimeOriginal:
string
{Exif}.ExifVersion​
ExifVersion:
string
{Exif}.ExposureBiasValue​
ExposureBiasValue:
number
{Exif}.ExposureMode​
ExposureMode:
number
{Exif}.ExposureProgram​
ExposureProgram:
number
{Exif}.ExposureTime​
ExposureTime:
number
{Exif}.Flash​
Flash:
number
{Exif}.FNumber​
FNumber:
number
{Exif}.FocalLength​
FocalLength:
number
{Exif}.FocalLenIn35mmFilm​
FocalLenIn35mmFilm:
number
{Exif}.ISOSpeedRatings​
ISOSpeedRatings:
number
[]
{Exif}.LensMake​
LensMake:
string
{Exif}.LensModel​
LensModel:
string
{Exif}.LensSpecification​
LensSpecification:
number
[]
{Exif}.MeteringMode​
MeteringMode:
number
{Exif}.OffsetTime​
OffsetTime:
string
{Exif}.OffsetTimeDigitized​
OffsetTimeDigitized:
string
{Exif}.OffsetTimeOriginal​
OffsetTimeOriginal:
string
{Exif}.PixelXDimension​
PixelXDimension:
number
{Exif}.PixelYDimension​
PixelYDimension:
number
{Exif}.SceneType​
SceneType:
number
{Exif}.SensingMethod​
SensingMethod:
number
{Exif}.ShutterSpeedValue​
ShutterSpeedValue:
number
{Exif}.SubjectArea​
SubjectArea:
number
[]
{Exif}.SubsecTimeDigitized​
SubsecTimeDigitized:
string
{Exif}.SubsecTimeOriginal​
SubsecTimeOriginal:
string
{Exif}.WhiteBalance​
WhiteBalance:
number
{MakerApple}?​
optional
{MakerApple}:Record
<string
,unknown
>
Represents any data Apple cameras write to the metadata
Platform​
iOS
{TIFF}​
{TIFF}:
object
{TIFF}.DateTime​
DateTime:
string
{TIFF}.HostComputer?​
optional
HostComputer:string
Platform​
iOS
{TIFF}.Make​
Make:
string
{TIFF}.Model​
Model:
string
{TIFF}.ResolutionUnit​
ResolutionUnit:
number
{TIFF}.Software​
Software:
string
{TIFF}.XResolution​
XResolution:
number
{TIFF}.YResolution​
YResolution:
number
DPIHeight​
DPIHeight:
number
Platform​
iOS
DPIWidth​
DPIWidth:
number
Platform​
iOS
Orientation​
Orientation:
number
Orientation of the EXIF Image.
- 1 = 0 degrees: the correct orientation, no adjustment is required.
- 2 = 0 degrees, mirrored: image has been flipped back-to-front.
- 3 = 180 degrees: image is upside down.
- 4 = 180 degrees, mirrored: image has been flipped back-to-front and is upside down.
- 5 = 90 degrees: image has been flipped back-to-front and is on its side.
- 6 = 90 degrees, mirrored: image is on its side.
- 7 = 270 degrees: image has been flipped back-to-front and is on its far side.
- 8 = 270 degrees, mirrored: image is on its far side.
See​
Platform​
iOS
Defined in​
types/PhotoFile.ts:79
orientation​
orientation:
Orientation
Display orientation of the photo, relative to the Camera's sensor orientation.
Note that Camera sensors are landscape, so e.g. "portrait" photos will have a value of "landscape-left", etc.
Defined in​
types/PhotoFile.ts:66
path​
path:
string
The path of the file.
-
Note: If you want to consume this file (e.g. for displaying it in an
<Image>
component), you might have to add thefile://
prefix. -
Note: This file might get deleted once the app closes because it lives in the temp directory.
Inherited from​
TemporaryFile.path
Defined in​
types/TemporaryFile.ts:12
thumbnail?​
optional
thumbnail:Record
<string
,unknown
>
Defined in​
types/PhotoFile.ts:71
width​
width:
number
The width of the photo, in pixels.
Defined in​
types/PhotoFile.ts:52