SilverStripe\AssetAdmin\Helper\ImageThumbnailHelper::generateThumbnails
Similar to AssetAdmin->generateThumbnails(), but with the ability to tell if a file actually required to be generated.
This speeds up the process, and removes some noise when thumbnails have already been generated.
Signature
protected function generateThumbnails(File
$file )
Parameters
$file
— SilverStripe\Assets\File
Returns
- array
- All generated files