Do not convert SVG logos

Description

Background

It is possible to add an SVG logo for a channel. However, when using it on the frontend the integrated_image function converts it to PNG, which is less in quality.

Requirements

  • integrated_image should return SVG for SVG input, do not convert SVG logos to PNG

  • all conversion functions (like resize) should be ignored, because they are not relevant for vector format

Technical info

  • In integrated\Bundles\ImageBundle\Resources\config\services.xml the svg format can be added. This allows uploading it.

  • In integrated\Bundles\ImageBundle\Twig\Extension\ImageExtension.php the webImage and image return an \Gregwar\ImageBundle\ImageHandler object, which doesn't support svg. It uses the \Gregwar\ImageBundle\Services\ImageHandling.php to create the object, but this service doesn't support svg either

Technical tasks

None

Deployment actions

None

Status

Assignee

Unassigned

Client

Integrated Marijn

Epic Link

Sprint

None

Fix versions

Configure