Bug #82098

Epic #83669: Improve file list / file browser

Duplicated image thumbnails in file list search view

Added by Tymoteusz Motylewski about 2 years ago. Updated over 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-08-14
Due date:
% Done:

0%

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

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

History

#1 Updated by Tymoteusz Motylewski about 2 years ago

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

#2 Updated by Riccardo De Contardi over 1 year ago

  • Parent task set to #83669

Also available in: Atom PDF