AvalancheImagineBundle
AvalancheImagineBundle copied to clipboard
Thumbnail of SVG files
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