Bug #82299
closed
Records thumbnail are not croping correctly in backend lists
Added by Matthias Toscanelli about 7 years ago.
Updated almost 3 years ago.
Category:
Backend User Interface
Description
When an image is configured to be the thumbnail in TCA and have a cropArea defined with the Crop utility, BackendUtility do not crop the image but render it as his original size.
A workaround is to use "m" suffix instead of "c" when a cropArea is set.
Line 1734 in BackendUtility:
...
'height' => $sizeParts[1] . ($cropArea->isEmpty() ? 'c' : 'm')
...
- Category set to Backend User Interface
Can you please deliver more information? Is this bug still reproducable with the latest 8.7.x?
My Test TCA
'thumbnail' => 'icon',
and
'icon' => [
'exclude' => true,
'label' => 'Test',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
'icon',
[
'appearance' => [
'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference'
],
'foreign_types' => [
'0' => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
]
],
'maxitems' => 1
],
$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
),
],
I need to do some tests with last version of 8.7.x
Last time, I got the problem with version 8.7.8
- Status changed from New to Closed
Will close this issue due to lack of feedback. If you feel this issue is still a problem, let me know and I will re-open the ticket.
Also available in: Atom
PDF