Interface

Imagine\Image\Metadata\MetadataReaderInterface

interface MetadataReaderInterface

Methods

MetadataBag readFile($file $file)

Reads metadata from a file.

MetadataBag readData($data $data)

Reads metadata from a binary string.

MetadataBag readStream($resource $resource)

Reads metadata from a stream.

Details

at line 27
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.

at line 36
public MetadataBag readData($data $data)

Reads metadata from a binary string.

Parameters

$data $data The binary string to read.

Return Value

MetadataBag

at line 47
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.