Watimage Normalize Class Usage

Reading time ~2 minutes

The normalize class is a static helper class that normalizes all the parameters passed to any Watimage class. Something probably useless for you.

Interesting methods where you could take proffit:

  • color: bring any color as hex or as an array and will return you an array with the r, g and b values.

See the tests for more details.

← Go back to Watimage Classes Usage

About the header image

For the header image the following code has been executed:

$image = new Image('sweet-home-original.jpg');
$image
    ->resize('resizeCrop', 1920, 600)
    ->brightness(-10)
    ->generate()
;

Both the image and the original can be found under gh-pages branch, inside images folder.