From b3b5e461e0291d25d06f8d2b07bcdc18a4c5a391 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 27 Apr 2021 14:09:36 +0200 Subject: [PATCH] Remove thumbnail generation from MediaImporter This is useless, because it can be performed using MediaRebuildDataWorker. It might also break the import process for borked source images. see 44f9dba4c98359b53679cdac3bb43982e716a7e1 --- .../files/lib/system/importer/MediaImporter.class.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/wcfsetup/install/files/lib/system/importer/MediaImporter.class.php b/wcfsetup/install/files/lib/system/importer/MediaImporter.class.php index 3755c6d512..0ec022913c 100644 --- a/wcfsetup/install/files/lib/system/importer/MediaImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/MediaImporter.class.php @@ -112,11 +112,6 @@ class MediaImporter extends AbstractImporter { $statement->execute([$media->mediaID, $languageID ?: null, $contentData['title'], $contentData['caption'], $contentData['altText']]); } - // create thumbnails - if ($media->isImage) { - $this->getSaveStrategy()->generateThumbnails($media); - } - ImportHandler::getInstance()->saveNewID('com.woltlab.wcf.media', $oldID, $media->mediaID); return $media->mediaID; } -- 2.20.1