Project

General

Profile

Actions

Feature #93946

open

ImageProcessing Command depending on Image Type

Added by varioous OG over 3 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Image Generation / GIFBUILDER
Target version:
-
Start date:
2021-04-19
Due date:
% Done:

0%

Estimated time:
PHP Version:
7.4
Tags:
Complexity:
medium
Sprint Focus:

Description

Hi,

in a project I have this situation: I have to convert png to jpg and jpg to jpg:
  • png -> jpg: Default Transparent become black
  • png -> png: Transparent should stay transparent

If I add this option to tell ImageMagick or GraphicsMagick to convert transparent to white (and png to jpg):

        Template: <f:uri.image src='{image.publicUrl}' fileExtension='jpg' width='{width}' />
        LocalConfiguration: 'processor_stripColorProfileCommand' => '+profile \'*\' -background white -flatten'

But this is always added to convert commands (also combine). So with this option also when converting png to png transparent is converted to white.

I want to better handle and tell TYPO3 how to build the command. Therefore a better configuration or signal/hook would be nice to tell TYPO3 which arguments should be used.

Thanks and kind regards,
Harald

No data to display

Actions

Also available in: Atom PDF