Project

General

Profile

Actions

Bug #103872

open

ContentObjectRenderer::getImgResource() returns null when a processed file path is passed

Added by Mogens Fiebrandt 25 days ago. Updated 24 days ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
Start date:
2024-05-22
Due date:
% Done:

0%

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

Description

1. Prerequisites:
The attached custom ImageViewHelper must be implemented.

2. Steps to reproduce:
The custom ImageViewHelper must be called in a Fluid-Template like this:

<myExt:image image="{image}" alt="Foo" title="Bar" height="200" gifBuilderEffect="grey | gamma=2.0" 
    gifBuilderText="{align: 'right', offset: '-10,30', text: 'Hello World', fontsize: '35'}" fileExtension="png"  />

Where {image} must be a type of File or FileReference.

3. Actual Result:
- A Img tag is rendered
- The path in the src attribute points to an image in "/typo3temp/assets/images/"
- But the size of the rendered image in the assets folder is just 1px x 1px. So in fact no image is shown.

4. Expected result:
- A properly rendered image with GifBuilder Effects and GifBuilder Text.

5. Additional notes:
In TYPO3 12.4 the ImageViewHelper works.
The only difference in the TYPO3 12.4 version of the ImageViewHelper is the line 136 where the imageUri is assigned:

$imageUri = $gifBuilder->gifBuild();


Files

ImageViewHelper.php (11 KB) ImageViewHelper.php Mogens Fiebrandt, 2024-05-22 00:42
Actions #1

Updated by Gerrit Code Review 25 days ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84337

Actions #2

Updated by Gerrit Code Review 25 days ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84337

Actions #3

Updated by Gerrit Code Review 25 days ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84337

Actions #4

Updated by Gerrit Code Review 25 days ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84337

Actions #5

Updated by Gerrit Code Review 24 days ago

Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84337

Actions

Also available in: Atom PDF