diff --git a/Classes/Resource/Processing/DeferredImageProcessor.php b/Classes/Resource/Processing/DeferredImageProcessor.php index 2f89ce9..7634789 100644 --- a/Classes/Resource/Processing/DeferredImageProcessor.php +++ b/Classes/Resource/Processing/DeferredImageProcessor.php @@ -19,7 +19,19 @@ public function canProcessTask(TaskInterface $task): bool && $task->getSourceFile()->getMimeType() !== 'image/svg+xml' && $task->getSourceFile()->getExtension() !== 'svg' && $task->getSourceFile()->getMimeType() !== 'application/pdf' - && $task->getSourceFile()->getExtension() !== 'pdf'; + && $task->getSourceFile()->getExtension() !== 'pdf' + && $task->getSourceFile()->getMimeType() !== 'application/msword' + && $task->getSourceFile()->getExtension() !== 'doc' + && $task->getSourceFile()->getMimeType() !== 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' + && $task->getSourceFile()->getExtension() !== 'docx' + && $task->getSourceFile()->getMimeType() !== 'application/application/vnd.ms-excel' + && $task->getSourceFile()->getExtension() !== 'xls' + && $task->getSourceFile()->getMimeType() !== 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' + && $task->getSourceFile()->getExtension() !== 'xlsx' + && $task->getSourceFile()->getMimeType() !== 'application/vnd.ms-powerpoint' + && $task->getSourceFile()->getExtension() !== 'ppt' + && $task->getSourceFile()->getMimeType() !== 'application/vnd.openxmlformats-officedocument.presentationml.presentation' + && $task->getSourceFile()->getExtension() !== 'pptx'; } public function processTask(TaskInterface $task): void