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

Also available in: Atom PDF