Bug #79569
openIRRE preview does not show a default icon when no preview rendering is possible
0%
Description
Scenario
A user adds a CE upload ("File Links") to a page and adds e.g. some files with extension .xls and .pdf.
Problem
The preview rendered within IRRE does not work for all allowed fileextensions - see attachment.
The thumbnail rendering of PDF is working correctly in module filelist - see attachment.
- although thumbnail generation for PDF is working a default icon shown - that is okay.
- for XLS a preview does not make sense but is tried and no icon is shown - that looks odd.
Versions
TYPO3 CMS 7.6.15
Files
Updated by Daniel Wagner about 7 years ago
Updated by Daniel Wagner about 7 years ago
Updated by Daniel Wagner about 7 years ago
Thumbnail Rendering
renderForeignRecordHeader in InlineRecordContainer.php lets the image tool render a preview
and then will show the thumbnail if the processedImage has any width otherwise an icon will be shown.
In my case graphicsmagick renders a gif-thumbnail containing some text infos which has a width :(
Suggestion
Instead checking the thumbnail generation afterwards there should be a check against [GFX][imagefile_ext] before the generation.
- there wont be any PDF thumbnail if you do not allow PDFs as image (as suggested by TYPO3)
- in matters of security it is better to render only images (there have been issues in the past, e.g. TYPO3-PSA-2016-001)
Updated by Daniel Wagner about 7 years ago
- Category changed from Backend User Interface to Image Cropping
- Tags set to image security backend irre
- Complexity set to easy
Updated by Susanne Moog over 6 years ago
- Category changed from Image Cropping to Image Generation / GIFBUILDER