PHP Class Horde_Image_Exif, horde

Works equally well with either the built in php exif functions (if PHP compiled with exif support), the Exiftool package (more complete but slower), or the bundled exif library. Copyright 2003-2014 Horde LLC (http://www.horde.org/)
Author: Michael J. Rubinsky ([email protected])
Author: Chuck Hagenbuch ([email protected])
Show file Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_descriptionFields
$_titleFields

Public Methods

Method Description
factory ( string $driver = null, array $params = [] ) : Horde_Image_Exif Factory method for instantiating a Horde_Image_Exif object.
getCategories ( ) : array Obtains an array of supported meta data fields.
getDescriptionFields ( mixed $driver = null ) : array Returns a list of metadata fields that can by used for image descriptions.
getFields ( mixed $driver = null, boolean $description_only = false ) : array Returns a flattened array of supported metadata fields.
getHumanReadable ( string $field, string $data ) : string Converts an exif field into human-readable form.
getTitleFields ( mixed $driver = null ) : array Returns a list of metadata fields that can by used for image titles.
intel2Moto ( string $intel ) : string Converts from Intel to Motorola endien.

Protected Methods

Method Description
_convertToFraction ( $v, &$n, &$d ) Converts a floating point number into a fraction.
_formatExposure ( $data ) More human friendly exposure formatting.

Method Details

_convertToFraction() protected static method

Many thanks to Matthieu Froment for this code. (Ported from the Exifer library).
protected static _convertToFraction ( $v, &$n, &$d )

_formatExposure() protected static method

More human friendly exposure formatting.
protected static _formatExposure ( $data )

factory() public static method

Factory method for instantiating a Horde_Image_Exif object.
public static factory ( string $driver = null, array $params = [] ) : Horde_Image_Exif
$driver string
$params array
return Horde_Image_Exif

getCategories() public static method

Obtains an array of supported meta data fields.
public static getCategories ( ) : array
return array

getDescriptionFields() public static method

Returns a list of metadata fields that can by used for image descriptions.
Since: 2.1.0
public static getDescriptionFields ( mixed $driver = null ) : array
$driver mixed A Horde_Image_Exif_Base instance or a string specifying the driver in use.
return array An array of metadata field hashes.

getFields() public static method

Returns a flattened array of supported metadata fields.
public static getFields ( mixed $driver = null, boolean $description_only = false ) : array
$driver mixed A Horde_Image_Exif_Base instance or a string specifying the driver in use.
$description_only boolean Only return the field descriptions.
return array

getHumanReadable() public static method

Some of these cases are ported from the Exifer library, others were changed from their implementation where the EXIF standard dictated different behaviour.
public static getHumanReadable ( string $field, string $data ) : string
$field string The name of the field to translate.
$data string The data value to translate.
return string The converted data.

getTitleFields() public static method

Returns a list of metadata fields that can by used for image titles.
Since: 2.1.0
public static getTitleFields ( mixed $driver = null ) : array
$driver mixed A Horde_Image_Exif_Base instance or a string specifying the driver in use.
return array An array of metadata field name hashes.

intel2Moto() public static method

Just reverses the bytes (assumes hex is passed in)
public static intel2Moto ( string $intel ) : string
$intel string
return string

Property Details

$_descriptionFields protected static property

protected static $_descriptionFields

$_titleFields protected static property

protected static $_titleFields