ImageManipulationFactory
in package
Factory to create modificators for images.
Tags
Table of Contents
- getImageManipulator() : ImageManipulator
- Returns an image manipulator based on installed PHP modules.
- getImageManipulatorFromFile() : ImageManipulator
- Returns an image manipulator based on installed PHP modules.
Methods
getImageManipulator()
Returns an image manipulator based on installed PHP modules.
public
static getImageManipulator(string $imageData) : ImageManipulator
Parameters
- $imageData : string
-
binary string of image data
Return values
ImageManipulator —manipulator
getImageManipulatorFromFile()
Returns an image manipulator based on installed PHP modules.
public
static getImageManipulatorFromFile(string $path) : ImageManipulator
Parameters
- $path : string
-
path to image file
Return values
ImageManipulator —manipulator