SilverStripe\AssetAdmin\Helper\ImageThumbnailHelper
Synopsis
class ImageThumbnailHelper
{
- // members
- private static array $dependencies = ;
- private LoggerInterface|null $logger;
- private $maxImageFileSize;
- private integer $processedBatchSize = 100;
- // methods
- public $this setLogger()
- public void __construct()
- public int getMaxImageFileSize()
- public $this setMaxImageFileSize()
- public int run()
- protected array generateThumbnails()
Hierarchy
Uses
- SilverStripe\Core\Injector\Injectable
Members
private
- $dependencies
- $logger — SilverStripe\AssetAdmin\Helper\LoggerInterface|null
- $maxImageFileSize — int
- $processedBatchSize
Methods
protected
- generateThumbnails() — Similar to AssetAdmin->generateThumbnails(), but with the ability to tell if a file actually required to be generated.
public
- __construct()
- getMaxImageFileSize() — Get the maximum file size for which thumbnails will be generated. Set to `0` to disable the limit.
- run()
- setLogger()
- setMaxImageFileSize() — Set the maximum file size for which thumbnails will be generated. Set to `0` to disable the limit.