From: Tim Düsterhus Date: Tue, 27 Apr 2021 12:09:36 +0000 (+0200) Subject: Remove thumbnail generation from MediaImporter X-Git-Tag: 5.4.0_Alpha_1~12^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b3b5e461e0291d25d06f8d2b07bcdc18a4c5a391;p=GitHub%2FWoltLab%2FWCF.git 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 --- 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; }