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

Deployment actions

None

Technical tasks

None

Status

Assignee

Unassigned

Reporter

Marijn Otte

Product owner

Maartje Wessels-Wouda

OTM project ID

None

Client

Integrated Marijn

Plan date

None

Developer

Koen Prins

Code reviewer

Michael Jongman

Max. hours

30

Error message

None

Follow up date

None

Switches

None

Refiner

None

Story Points

5

Time tracking

15h 30m

Epic Link

Sprint

None

Fix versions

Priority

Major
Configure