Horde_Image_Exif_Exiftool
        
        extends Horde_Image_Exif_Base
    
    
            
            in package
            
        
    
    
    
        
            Exiftool driver for reading/writing image meta data
Tags
Table of Contents
- $_exiftool : string
- Path to exiftool binary
- $_logger : mixed
- Optional Logger
- $_params : array<string|int, mixed>
- Instance parameters.
- __construct() : mixed
- getData() : array<string|int, mixed>
- Get the image's EXIF data.
- supportedCategories() : mixed
- _degToDecimal() : float
- Convert degrees representation to decimal representation.
- _execute() : mixed
- Executes a exiftool command.
- _logDebug() : mixed
- _logErr() : mixed
- _parseGPSData() : float
- Parse the Longitude and Latitude values into a standardized format regardless of the source format.
- _processData() : array<string|int, mixed>
- Process the EXIF data.
Properties
$_exiftool
Path to exiftool binary
    protected
        string
    $_exiftool
    
    
    
    
$_logger
Optional Logger
    protected
        mixed
    $_logger
    
    
        
    
$_params
Instance parameters.
    protected
        array<string|int, mixed>
    $_params
    
    
    
    
Methods
__construct()
    public
                    __construct(mixed $params) : mixed
    
        Parameters
- $params : mixed
- 
                    Parameter array: - logger: Horde_Log_Logger Logger instance.
 
Return values
mixed —getData()
Get the image's EXIF data.
    public
                    getData(string $image) : array<string|int, mixed>
    
        Parameters
- $image : string
- 
                    The path to an image. 
Return values
array<string|int, mixed> —The exif data.
supportedCategories()
    public
                    supportedCategories() : mixed
        
    
    
        Return values
mixed —_degToDecimal()
Convert degrees representation to decimal representation.
    protected
                    _degToDecimal(float $degrees, float $minutes, float $seconds) : float
    
        Parameters
- $degrees : float
- 
                    The degrees latitude or longitude. 
- $minutes : float
- 
                    The minutes latitude or longitude. 
- $seconds : float
- 
                    the seconds latitude or longitude. 
Return values
float —The decimal representation of the latitude or longitute.
_execute()
Executes a exiftool command.
    protected
                    _execute(string $command) : mixed
    
        Parameters
- $command : string
- 
                    The command to run 
Return values
mixed —The result of the command.
_logDebug()
    protected
                    _logDebug(mixed $message) : mixed
        
        Parameters
- $message : mixed
Return values
mixed —_logErr()
    protected
                    _logErr(mixed $message) : mixed
        
        Parameters
- $message : mixed
Return values
mixed —_parseGPSData()
Parse the Longitude and Latitude values into a standardized format regardless of the source format.
    protected
                    _parseGPSData(mixed $data) : float
    
        Parameters
- $data : mixed
- 
                    An array containing degrees, minutes, seconds in index 0, 1, 2 respectifully. 
Return values
float —The location data in a decimal format.
_processData()
Process the EXIF data.
    protected
                    _processData(array<string|int, mixed> $exif) : array<string|int, mixed>
    
        Parameters
- $exif : array<string|int, mixed>
- 
                    Array of EXIF data. 
Return values
array<string|int, mixed> —An array of processed EXIF data.