Create a random style.
array A list containing the details of the generated image style.
function createRandomStyle() {
$style_name = strtolower($this
->randomName(10));
$style_label = $this
->randomString();
image_style_save(array(
'name' => $style_name,
'label' => $style_label,
));
$style_path = 'admin/config/media/image-styles/edit/' . $style_name;
return array(
'name' => $style_name,
'label' => $style_label,
'path' => $style_path,
);
}