\Horde_Image_Exif_Exiftool

Exiftool driver for reading/writing image meta data

Summary

Methods
Properties
Constants
__construct()
getData()
supportedCategories()
No public properties found
No constants found
_processData()
_parseGPSData()
_degToDecimal()
_logDebug()
_logErr()
_execute()
$_params
$_logger
$_exiftool
N/A
No private methods found
No private properties found
N/A

Properties

$_params

$_params : array

Instance parameters.

Type

array

$_logger

$_logger : 

Optional Logger

Type

$_exiftool

$_exiftool : string

Path to exiftool binary

Type

string

Methods

__construct()

__construct(array  $params) 

Parameters

array $params

Parameter array:

  • logger: Horde_Log_Logger Logger instance.

getData()

getData(string  $image) : array

Get the image's EXIF data.

Parameters

string $image

The path to an image.

Returns

array —

The exif data.

supportedCategories()

supportedCategories() 

_processData()

_processData(array  $exif) : array

Process the EXIF data.

Parameters

array $exif

Array of EXIF data.

Returns

array —

An array of processed EXIF data.

_parseGPSData()

_parseGPSData(mixed  $data) : double

Parse the Longitude and Latitude values into a standardized format regardless of the source format.

Parameters

mixed $data

An array containing degrees, minutes, seconds in index 0, 1, 2 respectifully.

Returns

double —

The location data in a decimal format.

_degToDecimal()

_degToDecimal(double  $degrees, double  $minutes, double  $seconds) : double

Convert degrees representation to decimal representation.

Parameters

double $degrees

The degrees latitude or longitude.

double $minutes

The minutes latitude or longitude.

double $seconds

the seconds latitude or longitude.

Returns

double —

The decimal representation of the latitude or longitute.

_logDebug()

_logDebug(  $message) 

Parameters

$message

_logErr()

_logErr(  $message) 

Parameters

$message

_execute()

_execute(string  $command) : mixed

Executes a exiftool command.

Parameters

string $command

The command to run

Returns

mixed —

The result of the command.