PHP Class Imbo\Image\ImagePreparation

Author: Christer Edvartsen ([email protected])
Inheritance: implements Imbo\EventListener\ListenerInterface
Datei anzeigen Open project: imbo/imbo Class Usage Examples

Public Methods

Method Description
getSubscribedEvents ( )
prepareImage ( Imbo\EventManager\EventInterface $event ) Prepare an image

Private Methods

Method Description
generateImageIdentifier ( Imbo\EventManager\EventInterface $event, Image $image ) : string Using the configured image identifier generator, attempt to generate a unique image identifier for the given image until we either have found a unique ID or we hit the maximum allowed attempts.

Method Details

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

prepareImage() public method

This method should prepare an image object from php://input. The method must also figure out the width, height, mime type and extension of the image.
public prepareImage ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface The current event