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])
Afficher le fichier Open project: horde/horde Class Usage Examples

Protected Properties

Свойство Type Description
$_descriptionFields
$_titleFields

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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

_formatExposure() protected static méthode

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

factory() public static méthode

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

getCategories() public static méthode

Obtains an array of supported meta data fields.
public static getCategories ( ) : array
Résultat array

getDescriptionFields() public static méthode

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.
Résultat array An array of metadata field hashes.

getFields() public static méthode

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.
Résultat array

getHumanReadable() public static méthode

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.
Résultat string The converted data.

getTitleFields() public static méthode

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.
Résultat array An array of metadata field name hashes.

intel2Moto() public static méthode

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

Property Details

$_descriptionFields protected_oe static_oe property

protected static $_descriptionFields

$_titleFields protected_oe static_oe property

protected static $_titleFields