Project

General

Profile

Actions

Bug #82098

closed

Epic #83669: Improve file list / file browser

Duplicated image thumbnails in file list search view

Added by Tymoteusz Motylewski over 6 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2017-08-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

TYPO3 shows image thumbnails in file list module, search in file list module and file picker.

Unfortunately thumbnails generated from search view are different then thumbanils from other places, which pollutes the sys_file_processedfile table as well as filesystem.
Dimensions of the images are the same.

Search in filelist uses fluid template typo3/sysext/filelist/Resources/Private/Templates/FileList/Search.html

<f:image image="{file.resource}" maxWidth="64" maxHeight="43" />
result in file /fileadmin/_processed_/0/3/csm_1_461a7fe184.jpg

with configuration column in db like:
a:7:{s:5:"width";N;s:6:"height";N;s:8:"minWidth";N;s:9:"minHeight";N;s:8:"maxWidth";i:64;s:9:"maxHeight";i:43;s:4:"crop";N;}

task type: "Image.CropScaleMask"

However the file list uses code like

$processedFile = $fileObject->process(ProcessedFile::CONTEXT_IMAGEPREVIEW, [])

for generating thumbnails, which generates configuration like:
a:2:{s:5:"width";i:64;s:6:"height";i:64;}

Possible solutions:
1) rewrite filelist and file picker to fluid
2) make image viewhelper aware of the "task type" parameter and make it skip empty options when serializing configuration.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #81776: Duplicated image thumbnails in file list, file picker and searchClosed2017-07-03

Actions
Actions #1

Updated by Tymoteusz Motylewski over 6 years ago

  • Related to Bug #81776: Duplicated image thumbnails in file list, file picker and search added
Actions #2

Updated by Riccardo De Contardi about 6 years ago

  • Parent task set to #83669
Actions #3

Updated by Susanne Moog about 4 years ago

  • Category set to Backend User Interface
Actions #4

Updated by Oliver Bartsch over 2 years ago

  • Status changed from New to Closed

Hi Tymoteusz, just checked this again and it seems to be fixed now (see https://review.typo3.org/c/Packages/TYPO3.CMS/+/69718). As you already described, this was due to two different functionalities used for the list and the search result view. As both now use the same functionality, the images are processed the same way and only one entry is added to sys_file_processedfile.

I'll therefore close this issue. In case you still encounter this problem, please create a new issue with a reference to this one.

Best, Oli

Actions

Also available in: Atom PDF