---
title: "Feature: #90416 - Specific target file extension in image-related ViewHelpers"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-90416"
source: "Changelog/10.3/Feature-90416-SpecificTargetFileExtensionInImage-relatedViewHelpers.rst"
modified: "2026-09-14T09:47:36+00:00"
---

# Feature: #90416 - Specific target file extension in image-related ViewHelpers

See [forge#90416](https://forge.typo3.org/issues/90416)

## Description

TYPO3 core's shipped Fluid ViewHelpers now allow to optionally
specify a target file extension via the new attribute `fileExtension`.

This affects the following ViewHelpers:

-   `<f:image>`
-   `<f:media>`
-   `<f:uri.image>`

This is rather important for specific scenarios where a `<picture>` tag with multiple images are requested, allowing
to e.g. customize rendering for `webp` support, if the servers' ImageMagick version supports `webp` conversion.

In other regard, this might become useful to specify the output
for preview images of `pdf` files which can be converted via `GhostScript` if installed.

## Impact

TYPO3 Integrators can now use the additional attribute
in their custom Fluid Templates for specific use cases.

Example:

```html
<picture>
  <source srcset="{f:uri.image(image: fileObject, treatIdAsReference: true, fileExtension: 'webp')}" type="image/webp">
  <source srcset="{f:uri.image(image: fileObject, treatIdAsReference: true, fileExtension: 'jpg')}" type="image/jpeg">
  <f:image image="{fileObject}" treatIdAsReference="true" alt="{fileObject.alternative}" />
</picture>
```
