For a color negative image, set the optional flag: invertImage($input, '', true);
For a black and withe negative image use like this: invertImage($input, '');
If you want to save the output instead of just showing it, set the output to the path where you want to save the inverted image: invertImage('path/to/original/image.jpg','path/to/save/inverted-image.jpg');
If you want to use png you have to set the color flag as true or false and define the imagetype in the function call: invertImage('path/to/image.png','',false,'png');
Creates a directory recursively. The permissions of the newly created directories are the same as the permission of the given $permsFrom file or directory.
Tags:
static:
access:
public
Parameters:
string
$directory
The directory to create (can create recursively)
string
$permsFrom
Permissions of the newly created directory are the same as this file or directory.