Project

General

Profile

Actions

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.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2017-09-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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')
...

Actions #1

Updated by Riccardo De Contardi about 7 years ago

  • Category set to Backend User Interface
Actions #2

Updated by Guido S. over 6 years ago

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']
            ),
        ],
Actions #3

Updated by Matthias Toscanelli over 6 years ago

I need to do some tests with last version of 8.7.x
Last time, I got the problem with version 8.7.8

Actions #4

Updated by Benni Mack almost 3 years ago

  • 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.

Actions

Also available in: Atom PDF