Project

General

Profile

Actions

Feature #101391

open

Add base64 option to ImageViewHelper

Added by Sebastien Convers 12 months ago. Updated 21 days ago.

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

0%

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)

Actions

Also available in: Atom PDF