PHP Class ColorThief\Image\ImageLoader

Show file Open project: ksubileau/color-thief-php Class Usage Examples

Public Methods

Method Description
getAdapter ( string $adapterType ) : ColorThief\Image\Adapter\ImageAdapter
isGmagickLoaded ( ) : boolean Checks if Gmagick extension is loaded
isImagickLoaded ( ) : boolean Checks if Imagick extension is loaded
load ( mixed $source ) : ColorThief\Image\Adapter\ImageAdapter

Method Details

getAdapter() public method

public getAdapter ( string $adapterType ) : ColorThief\Image\Adapter\ImageAdapter
$adapterType string
return ColorThief\Image\Adapter\ImageAdapter

isGmagickLoaded() public method

Checks if Gmagick extension is loaded
public isGmagickLoaded ( ) : boolean
return boolean

isImagickLoaded() public method

Checks if Imagick extension is loaded
public isImagickLoaded ( ) : boolean
return boolean

load() public method

public load ( mixed $source ) : ColorThief\Image\Adapter\ImageAdapter
$source mixed Path/URL to the image, GD resource, Imagick instance, or image as binary string
return ColorThief\Image\Adapter\ImageAdapter