Bug #82098
closedEpic #83669: Improve file list / file browser
Duplicated image thumbnails in file list search view
0%
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.
Updated by Tymoteusz Motylewski over 7 years ago
- Related to Bug #81776: Duplicated image thumbnails in file list, file picker and search added
Updated by Oliver Bartsch over 3 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