Documentation

Data
in package

Table of Contents

Constants

ORIENTATION_BOTTOM_LEFT  = 4
ORIENTATION_BOTTOM_RIGHT  = 3
ORIENTATION_LEFT_BOTTOM  = 8
ORIENTATION_LEFT_TOP  = 5
ORIENTATION_RIGHT_BOTTOM  = 7
ORIENTATION_RIGHT_TOP  = 6
ORIENTATION_TOP_LEFT  = 1
ORIENTATION_TOP_RIGHT  = 2
SECTION_ALL  = 'ANY_TAG'
SECTION_COMMENT  = 'COMMENT'
SECTION_COMPUTED  = 'COMPUTED'
SECTION_EXIF  = 'EXIF'
SECTION_FILE  = 'FILE'
SECTION_IFD0  = 'IFD0'
SECTION_IPTC  = 'IPTC'
SECTION_THUMBNAIL  = 'THUMBNAIL'

Properties

$data  : array<string|int, mixed>
The EXIF data

Methods

__construct()  : mixed
Class constructor
getAperture()  : string|bool
Returns the Aperture F-number
getCamera()  : string|bool
Returns the camera, if it exists
getCaption()  : string|bool
Returns the caption, if it exists
getCopyright()  : string|bool
Returns the copyright, if it exists
getCreationDate()  : DateTime|bool
Returns the creation datetime, if it exists
getExposure()  : string|bool
Returns the Exposure
getExposureMilliseconds()  : float|bool
Returns the Exposure
getFocalLength()  : float|bool
Returns the focal length in mm, if it exists
getFocusDistance()  : string|bool
Returns the focus distance, if it exists
getHeight()  : int|bool
Returns the height in pixels, if it exists
getHorizontalResolution()  : int|bool
Returns the horizontal resolution in DPI, if it exists
getIso()  : int|bool
Returns the ISO speed
getKeywords()  : array<string|int, mixed>|bool
Returns the keywords, if they exists
getLocation()  : mixed
Returns the latitude and longitude, if it exists
getOrientation()  : mixed
Returns the orientation of the image
getRawData()  : array<string|int, mixed>
Returns all EXIF data in the raw original format
getSoftware()  : string|bool
Returns the software, if it exists
getTitle()  : string|bool
Returns the title, if it exists
getVerticalResolution()  : int|bool
Returns the vertical resolution in DPI, if it exists
getWidth()  : int|bool
Returns the width in pixels, if it exists
gps2Num()  : mixed
setRawData()  : Exif
Sets the EXIF data
toDecimal()  : mixed
Converts a GPS coordinate to a decimal based value

Constants

ORIENTATION_BOTTOM_LEFT

public mixed ORIENTATION_BOTTOM_LEFT = 4

ORIENTATION_BOTTOM_RIGHT

public mixed ORIENTATION_BOTTOM_RIGHT = 3

ORIENTATION_LEFT_BOTTOM

public mixed ORIENTATION_LEFT_BOTTOM = 8

ORIENTATION_LEFT_TOP

public mixed ORIENTATION_LEFT_TOP = 5

ORIENTATION_RIGHT_BOTTOM

public mixed ORIENTATION_RIGHT_BOTTOM = 7

ORIENTATION_RIGHT_TOP

public mixed ORIENTATION_RIGHT_TOP = 6

ORIENTATION_TOP_LEFT

public mixed ORIENTATION_TOP_LEFT = 1

ORIENTATION_TOP_RIGHT

public mixed ORIENTATION_TOP_RIGHT = 2

SECTION_ALL

public mixed SECTION_ALL = 'ANY_TAG'

SECTION_COMMENT

public mixed SECTION_COMMENT = 'COMMENT'

SECTION_COMPUTED

public mixed SECTION_COMPUTED = 'COMPUTED'

SECTION_EXIF

public mixed SECTION_EXIF = 'EXIF'

SECTION_FILE

public mixed SECTION_FILE = 'FILE'

SECTION_IFD0

public mixed SECTION_IFD0 = 'IFD0'

SECTION_IPTC

public mixed SECTION_IPTC = 'IPTC'

SECTION_THUMBNAIL

public mixed SECTION_THUMBNAIL = 'THUMBNAIL'

Properties

$data

The EXIF data

protected array<string|int, mixed> $data = array()

Methods

__construct()

Class constructor

public __construct([array<string|int, mixed> $data = [] ]) : mixed
Parameters
$data : array<string|int, mixed> = []

getAperture()

Returns the Aperture F-number

public getAperture() : string|bool
Return values
string|bool

getCamera()

Returns the camera, if it exists

public getCamera() : string|bool
Return values
string|bool

getCaption()

Returns the caption, if it exists

public getCaption() : string|bool
Return values
string|bool

getCopyright()

Returns the copyright, if it exists

public getCopyright() : string|bool
Return values
string|bool

getCreationDate()

Returns the creation datetime, if it exists

public getCreationDate() : DateTime|bool
Return values
DateTime|bool

getExposure()

Returns the Exposure

public getExposure() : string|bool
Return values
string|bool

getExposureMilliseconds()

Returns the Exposure

public getExposureMilliseconds() : float|bool
Return values
float|bool

getFocalLength()

Returns the focal length in mm, if it exists

public getFocalLength() : float|bool
Return values
float|bool

getFocusDistance()

Returns the focus distance, if it exists

public getFocusDistance() : string|bool
Return values
string|bool

getHeight()

Returns the height in pixels, if it exists

public getHeight() : int|bool
Return values
int|bool

getHorizontalResolution()

Returns the horizontal resolution in DPI, if it exists

public getHorizontalResolution() : int|bool
Return values
int|bool

getIso()

Returns the ISO speed

public getIso() : int|bool
Return values
int|bool

getKeywords()

Returns the keywords, if they exists

public getKeywords() : array<string|int, mixed>|bool
Return values
array<string|int, mixed>|bool

getLocation()

Returns the latitude and longitude, if it exists

public getLocation() : mixed
Tags
since
1.0.0
access

public

getOrientation()

Returns the orientation of the image

public getOrientation() : mixed
Tags
since
1.0
access

public

getRawData()

Returns all EXIF data in the raw original format

public getRawData() : array<string|int, mixed>
Return values
array<string|int, mixed>

getSoftware()

Returns the software, if it exists

public getSoftware() : string|bool
Return values
string|bool

getTitle()

Returns the title, if it exists

public getTitle() : string|bool
Return values
string|bool

getVerticalResolution()

Returns the vertical resolution in DPI, if it exists

public getVerticalResolution() : int|bool
Return values
int|bool

getWidth()

Returns the width in pixels, if it exists

public getWidth() : int|bool
Return values
int|bool

gps2Num()

public gps2Num(mixed $coordPart) : mixed
Parameters
$coordPart : mixed

setRawData()

Sets the EXIF data

public setRawData(array<string|int, mixed> $data) : Exif
Parameters
$data : array<string|int, mixed>

The data to set

Return values
Exif

Current instance for chaining

toDecimal()

Converts a GPS coordinate to a decimal based value

public toDecimal(mixed $exifCoord, mixed $hemi) : mixed
Parameters
$exifCoord : mixed
$hemi : mixed
Tags
since
1.0.0
access

public


        
On this page

Search results