IRRE preview does not show a default icon when no preview rendering is possible
A user adds a CE upload ("File Links") to a page and adds e.g. some files with extension .xls and .pdf.
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.
TYPO3 CMS 7.6.15
Updated by Daniel Wagner over 4 years ago
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 :(
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)