Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thumbnail of SVG files #187

Open
Prometee opened this issue Aug 11, 2014 · 0 comments
Open

Thumbnail of SVG files #187

Prometee opened this issue Aug 11, 2014 · 0 comments

Comments

@Prometee
Copy link

How to handle SVG file thumbnail ?
When trying to get thumbnail, this error occured :

An image could not be created from the given input

[1] Imagine\Exception\InvalidArgumentException: An image could not be created from the given input
at n/a
    in /..../vendor/imagine/Imagine/lib/Imagine/Gd/Imagine.php line 134

at Imagine\Gd\Imagine->load('<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg>
CONTENT OF SVG
</svg>
')
    in /..../vendor/imagine/Imagine/lib/Imagine/Gd/Imagine.php line 155

at Imagine\Gd\Imagine->read('Resource id #177')
    in /..../vendor/imagine/Imagine/lib/Imagine/Gd/Imagine.php line 117

at Imagine\Gd\Imagine->open('/..../app/../web/upload/file.svg')
    in /..../vendor/avalanche123/imagine-bundle/Avalanche/Bundle/ImagineBundle/Imagine/CacheManager.php line 88

at Avalanche\Bundle\ImagineBundle\Imagine\CacheManager->cacheImage('/app_dev.php', 'upload/file.svg', 'asset_thumb')
    in /..../vendor/avalanche123/imagine-bundle/Avalanche/Bundle/ImagineBundle/Controller/ImagineController.php line 61

at Avalanche\Bundle\ImagineBundle\Controller\ImagineController->filter('upload/file.svg', 'asset_thumb')
    in  line 

at call_user_func_array(array(object(ImagineController), 'filter'), array('upload/file.svg', 'asset_thumb'))
    in /..../app/bootstrap.php.cache line 2872

at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
    in /..../app/bootstrap.php.cache line 2846

at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
    in /..../app/bootstrap.php.cache line 2975

at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
    in /..../app/bootstrap.php.cache line 2255

at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
    in /..../web/app_dev.php line 26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant