PHP Класс 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/)
Автор: Michael J. Rubinsky ([email protected])
Автор: Chuck Hagenbuch ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_descriptionFields
$_titleFields

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
_convertToFraction ( $v, &$n, &$d ) Converts a floating point number into a fraction.
_formatExposure ( $data ) More human friendly exposure formatting.

Описание методов

_convertToFraction() защищенный статический Метод

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

_formatExposure() защищенный статический Метод

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

factory() публичный статический Метод

Factory method for instantiating a Horde_Image_Exif object.
public static factory ( string $driver = null, array $params = [] ) : Horde_Image_Exif
$driver string
$params array
Результат Horde_Image_Exif

getCategories() публичный статический Метод

Obtains an array of supported meta data fields.
public static getCategories ( ) : array
Результат array

getDescriptionFields() публичный статический Метод

Returns a list of metadata fields that can by used for image descriptions.
С версии: 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.
Результат array An array of metadata field hashes.

getFields() публичный статический Метод

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.
Результат array

getHumanReadable() публичный статический Метод

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.
Результат string The converted data.

getTitleFields() публичный статический Метод

Returns a list of metadata fields that can by used for image titles.
С версии: 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.
Результат array An array of metadata field name hashes.

intel2Moto() публичный статический Метод

Just reverses the bytes (assumes hex is passed in)
public static intel2Moto ( string $intel ) : string
$intel string
Результат string

Описание свойств

$_descriptionFields защищенное статическое свойство

protected static $_descriptionFields

$_titleFields защищенное статическое свойство

protected static $_titleFields