sonata-project / SonataMediaBundle

Symfony SonataMediaBundle

Home Page:https://docs.sonata-project.org/projects/SonataMediaBundle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Liip imagine integration and svg

dima-gr opened this issue · comments

If you enable integration with liip imagine, svg image downloaded and render in admin list but when you try render image somewhere in twig template then svg not rendered, maybe you don't need to apply the filter for them

Can you provide a PR with this feature @dima-gr ?

Ok, but it will be littlebit later

Friendly ping @dima-gr, do you have some time for this feature ?

I'll try provide a PR in the next week

I'm create PR, the problem is that the GD driver does not support working with svg, the entry is marked as MediaInterface::STATUS_ERROR, it happens in ImageProvider.php on 283 line

        try {
            $image = $this->imagineAdapter->open($binaryContent->getPathname());
        } catch (\RuntimeException $e) {
            $media->setProviderStatus(MediaInterface::STATUS_ERROR);

            return;
        }

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.