Class

Imagine\Image\Metadata\ExifMetadataReader

class ExifMetadataReader extends AbstractMetadataReader

Metadata driven by Exif information

Methods

MetadataBag readFile($file $file)

Reads metadata from a file.

from AbstractMetadataReader
MetadataBag readData($data $data)

Reads metadata from a binary string.

from AbstractMetadataReader
MetadataBag readStream($resource $resource)

Reads metadata from a stream.

from AbstractMetadataReader
__construct()

Details

public MetadataBag readFile($file $file)

Reads metadata from a file.

Parameters

$file $file The path to the file where to read metadata.

Return Value

MetadataBag

Exceptions

InvalidArgumentException In case the file does not exist.

public MetadataBag readData($data $data)

Reads metadata from a binary string.

Parameters

$data $data The binary string to read.

Return Value

MetadataBag

public MetadataBag readStream($resource $resource)

Reads metadata from a stream.

Parameters

$resource $resource The stream to read.

Return Value

MetadataBag

Exceptions

InvalidArgumentException In case the resource is not valid.

at line 22
public __construct()