Skip to content

FEATURE: Support dimensions and cropping for SVG Images #5652

@mficzel

Description

@mficzel

Is there an existing issue for this topic?

  • I have searched the existing issues

Description

SVG files are currently handled as a black box and neither cropping nor dimension informations are available.

This has the following drawbacks:

Possible Solution

The composer package contao/imagine-svg allows to crop and resize svg images but uses a slightly different interface than imagine/imagine.

In https://github.com/sitegeist/Sitegeist.Kaleidoscope.Svg contao/imagine-svg is connected via an aspect. However since this clearly is a hacky solution the solution for the neos core should be somehow cleaner.

Challenges

The api for image adjustments is tightly coupled to the imagine interface which is not able to handle svg images. The interfaces have to be adjusted or another interface has to be added to handle the adjustments of svgs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions