Project

General

Profile

Actions

Feature #101391

closed

Add base64 option to ImageViewHelper

Added by Sebastien Convers over 1 year ago. Updated about 1 month ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2023-07-19
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:
On Location Sprint

Description

Would be nice to have option on ImageViewHelper, to get base64 encoded image.
Could be useful for usage in FluidEmail.

Something like this:

Usage

<f:image base64="true" src="EXT:backend/Resources/Public/Images/typo3_logo_orange.svg" height="20" class="pr-2" base64="true" />

Output
<img class="pr-2" src="data: image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy..." alt="" width="20" height="20">

(This is my first try to contribute to core, so please tell me if something is wrong)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #93550: SVG Inline ViewHelperClosed2021-02-19

Actions
Actions

Also available in: Atom PDF