Storing media specific manipulations

A media object has a property manipulations, which can be set to an array of manipulation values, with their conversion name as key.

When saving the media object, the package will regenerate all files and use the saved manipulation as the first manipulation when creating a derived image.

// Add a greyscale filter to the 'thumb' manipulations
$mediaItems = $newsItem->getMedia('images');
$mediaItems[0]->manipulations = ['thumb' => ['filt' => 'greyscale']];

// This will cause the thumb conversion to be regenerated

Calling save in this example will regenerate the thumb-image. The output will be a greyscale image.