[BUGFIX] Respect crop of FileReference objects in getImgResource
ContentObjectRenderer::getImgResource is used for the content objects IMAGE, IMG_RESOURCE, as well as GIFBUILDER to process images. When it is passed a FileReference object, it should respect the crop settings of this reference, same as when it is passed a reference UID plus the treatIdAsReference config. Resolves: #101810 Releases: main, 12.4, 11.5 Change-Id: I399106399ec283561c00fa5cf61d6c7fe2871e49 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80906 Tested-by:Stefan Bürk <stefan@buerk.tech> Tested-by:
core-ci <typo3@b13.com> Reviewed-by:
Stefan Bürk <stefan@buerk.tech>
Showing
- typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php 3 additions, 1 deletion.../frontend/Classes/ContentObject/ContentObjectRenderer.php
- typo3/sysext/frontend/Tests/Functional/ContentObject/ContentObjectRendererTest.php 23 additions, 0 deletions...ts/Functional/ContentObject/ContentObjectRendererTest.php
- typo3/sysext/frontend/Tests/Functional/ContentObject/DataSet/FileReferences.csv 3 additions, 0 deletions...Tests/Functional/ContentObject/DataSet/FileReferences.csv
Please register or sign in to comment