Issue Task Resolved

#110350Replace GifBuilder::getTemporaryImageWithText() error thumbnails with a static SVG placeholder

Benni Mack 08/01/26, 05:51 updated 08/01/26, 18:40

Description

GifBuilder::getTemporaryImageWithText() renders placeholder thumbnails via GD (based on NotFound.png).

Reviews 1

Files 2

History 38

  1. Benni Mack commented <span data-processor="relativetime" data-value="2026-08-01T07:40:54+00:00" > 08/01/26, 07:40 </span>

    How to test

    --- a/typo3/sysext/filelist/Classes/FileList.php
    +++ b/typo3/sysext/filelist/Classes/FileList.php
    @@ protected function renderThumbnail(ResourceView $resourceView): string
    -        if ($this->thumbs === false
    -            || $resourceView->getPreview() === null
    -            || !($resourceView->getPreview()->isImage() || $resourceView->getPreview()->isMediaFile())
    -        ) {
    +        if ($this->thumbs === false || $resourceView->getPreview() === null) {
                 return '';
             }
    
             $processedFile = $resourceView->getPreview()->process(
    -            ProcessedFile::CONTEXT_IMAGECROPSCALEMASK,
    +            ProcessedFile::CONTEXT_IMAGEPREVIEW,
                 [
    -                'maxWidth' => (int)($this->getBackendUser()->getTSConfig()['options.']['file_list.']['thumbnail.']['width'] ?? 64),
    -                'maxHeight' => (int)($this->getBackendUser()->getTSConfig()['options.']['file_list.']['thumbnail.']['height'] ?? 64),
    +                'width' => (int)($this->getBackendUser()->getTSConfig()['options.']['file_list.']['thumbnail.']['width'] ?? 64),
    +                'height' => (int)($this->getBackendUser()->getTSConfig()['options.']['file_list.']['thumbnail.']['height'] ?? 64),
                 ]
             );
  2. Simon Schaufelberger commented and changed attached Auswahl_027.png attached Auswahl_028.png <span data-processor="relativetime" data-value="2026-08-01T15:11:37+00:00" > 08/01/26, 15:11 </span>

  3. Benni Mack commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-08-01T18:40:09+00:00" > 08/01/26, 18:40 </span>

    Applied in changeset commit:b08282345cd6175b02d69b710f19cd9cd40a04f8.