Method |
Description |
|
base64Pixel ( $width = 1, $height = 1 ) : string |
Returns a base64 encoded transparent pixel. Useful for adding as src on img tags for validation when using srcset. |
|
clientSupportsWebp ( ) : boolean |
Checks for webp support in browser |
|
getColorPalette ( $image, integer $colorCount = 8, integer $quality = 10, string $colorValue = 'hex' ) : mixed |
Gets a palette of colors from an image |
|
getDominantColor ( $image, integer $quality = 10, string $colorValue = 'hex' ) : mixed |
Gets the dominant color of an image |
|
hex2rgb ( string $color ) : array |
Converts a hex color value to rgb |
|
rgb2hex ( array $color ) : string |
Converts a rgb color value to hex |
|
serverSupportsWebp ( ) : boolean |
Checks for webp support in image driver |
|
srcset ( Array $images, string $descriptor = 'w' ) : string |
Takes an array of Imager_ImageModel (or anything else that supports getUrl() and getWidth())
and returns a srcset string |
|
transformImage ( $file, $transform, $transformDefaults = null, $configOverrides = null ) : mixed |
Transforms an image |
|