PHP Class Imbo\EventListener\ExifMetadata
This listener will look for properties stored in the image, and store them as metadata in Imbo.
Datei anzeigen
Open project: imbo/imbo
Class Usage Examples
Protected Properties
Public Methods
Method |
Description |
|
__construct ( array $params = null ) |
Class constructor |
|
getImagick ( ) : Imagick |
Get an Imagick instance |
|
getSubscribedEvents ( ) |
|
|
populate ( Imbo\EventManager\EventInterface $event ) : array |
Read exif data from incoming image |
|
save ( Imbo\EventManager\EventInterface $event ) |
Save metadata to database |
|
setImagick ( Imagick $imagick ) : self |
Set an Imagick instance |
|
Protected Methods
Method Details
__construct()
public method
filterProperties()
protected method
Filter out any unwanted properties
getImagick()
public method
getSubscribedEvents()
public static method
parseGpsCoordinate()
protected method
Parse GPS coordinates in hours/minutes/seconds-format to decimal degrees
parseProperties()
protected method
Parse an array of properties into a storable format
Read exif data from incoming image
public populate ( Imbo\EventManager\EventInterface $event ) : array |
$event |
Imbo\EventManager\EventInterface |
The triggered event |
return |
array |
|
Save metadata to database
public save ( Imbo\EventManager\EventInterface $event ) |
$event |
Imbo\EventManager\EventInterface |
The triggered event |
setImagick()
public method
public setImagick ( Imagick $imagick ) : self |
$imagick |
Imagick |
An instance of Imagick |
return |
self |
|
Property Details
$properties protected_oe property
protected array $properties |
return |
array |
|