Skip to main content

Interface: PhotoFile

Represents a Photo taken by the Camera written to the local filesystem.

See Camera.takePhoto()

Hierarchy​

  • TemporaryFile

    ↳ PhotoFile

Properties​

height​

• height: number

The height of the photo, in pixels.

Defined in​

types/PhotoFile.ts:63


isMirrored​

• isMirrored: boolean

Whether this photo is mirrored (selfies) or not.

Defined in​

types/PhotoFile.ts:77


isRawPhoto​

• isRawPhoto: boolean

Whether this photo is in RAW format or not.

Defined in​

types/PhotoFile.ts:67


metadata​

• Optional metadata: Object

Metadata information describing the captured image. (iOS only)

See

AVCapturePhoto.metadata

Platform

iOS

Type declaration​

NameTypeDescription
DPIHeightnumberPlatform iOS
DPIWidthnumberPlatform iOS
OrientationnumberOrientation 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.
{Exif}{ ApertureValue: number ; BrightnessValue: number ; ColorSpace: number ; DateTimeDigitized: string ; DateTimeOriginal: string ; ExifVersion: string ; ExposureBiasValue: number ; ExposureMode: number ; ExposureProgram: number ; ExposureTime: number ; FNumber: number ; Flash: number ; FocalLenIn35mmFilm: number ; FocalLength: number ; ISOSpeedRatings: number[] ; LensMake: string ; LensModel: string ; LensSpecification: number[] ; MeteringMode: number ; OffsetTime: string ; OffsetTimeDigitized: string ; OffsetTimeOriginal: string ; PixelXDimension: number ; PixelYDimension: number ; SceneType: number ; SensingMethod: number ; ShutterSpeedValue: number ; SubjectArea: number[] ; SubsecTimeDigitized: string ; SubsecTimeOriginal: string ; WhiteBalance: number }-
{Exif}.ApertureValuenumber-
{Exif}.BrightnessValuenumber-
{Exif}.ColorSpacenumber-
{Exif}.DateTimeDigitizedstring-
{Exif}.DateTimeOriginalstring-
{Exif}.ExifVersionstring-
{Exif}.ExposureBiasValuenumber-
{Exif}.ExposureModenumber-
{Exif}.ExposureProgramnumber-
{Exif}.ExposureTimenumber-
{Exif}.FNumbernumber-
{Exif}.Flashnumber-
{Exif}.FocalLenIn35mmFilmnumber-
{Exif}.FocalLengthnumber-
{Exif}.ISOSpeedRatingsnumber[]-
{Exif}.LensMakestring-
{Exif}.LensModelstring-
{Exif}.LensSpecificationnumber[]-
{Exif}.MeteringModenumber-
{Exif}.OffsetTimestring-
{Exif}.OffsetTimeDigitizedstring-
{Exif}.OffsetTimeOriginalstring-
{Exif}.PixelXDimensionnumber-
{Exif}.PixelYDimensionnumber-
{Exif}.SceneTypenumber-
{Exif}.SensingMethodnumber-
{Exif}.ShutterSpeedValuenumber-
{Exif}.SubjectAreanumber[]-
{Exif}.SubsecTimeDigitizedstring-
{Exif}.SubsecTimeOriginalstring-
{Exif}.WhiteBalancenumber-
{MakerApple}?Record<string, unknown>Represents any data Apple cameras write to the metadata Platform iOS
{TIFF}{ DateTime: string ; HostComputer?: string ; Make: string ; Model: string ; ResolutionUnit: number ; Software: string ; XResolution: number ; YResolution: number }-
{TIFF}.DateTimestring-
{TIFF}.HostComputer?stringPlatform iOS
{TIFF}.Makestring-
{TIFF}.Modelstring-
{TIFF}.ResolutionUnitnumber-
{TIFF}.Softwarestring-
{TIFF}.XResolutionnumber-
{TIFF}.YResolutionnumber-

Defined in​

types/PhotoFile.ts:86


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:73


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 the file:// 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:78


width​

• width: number

The width of the photo, in pixels.

Defined in​

types/PhotoFile.ts:59