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 width filter to the 'thumb' manipulations $mediaItems = $newsItem->getMedia('images'); $mediaItems->manipulations = ['thumb' => [ 'width' => '10']]; // This will cause the thumb conversion to be regenerated $mediaItems->save();
save in this example will regenerate the