You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<imgsrc="{{ data_uri_thumbnail('build/images/logo.png', 40, 30) }}"
data-controller="symfony--ux-lazy-image--lazy-image"
data-symfony--ux-lazy-image--lazy-image-src-value="{{ asset('build/images/logo.png') }}"
alt="A blurhash image that is replaced by the real image on load"
width="578"
height="275"
style="border-radius: 5px;"
>
I get the following error message :
An exception has been thrown during the rendering of a template ("To use the Blurhash feature, install intervention/image.").
So I install intervention/image according to the message with composer require intervention/image (version 3.5).
But I get another error message :
Too few arguments to function Intervention\Image\ImageManager::__construct(), 0 passed in /Users/.../symfony-app/var/cache/dev/ContainerGHlcxB8/App_KernelDevDebugContainer.php on line 1525 and exactly 1 expected
After looking through the App_KernelDevDebugContainer file, I found this line :
Hello, I have a problem when I try to use
UX Lazy Image
withBlurHash
.When I try to execute this code in one of my templates (according to symfony example ux) :
I get the following error message :
So I install
intervention/image
according to the message withcomposer require intervention/image
(version3.5
).But I get another error message :
After looking through the
App_KernelDevDebugContainer
file, I found this line :ImageManager
is instantiated without any parameter, but requires one :https://github.com/Intervention/image/blob/3.5.0/src/ImageManager.php
If anyone has any ideas on how to solve this problem, I'd love to hear from you.
I'll investigate for more details.
The text was updated successfully, but these errors were encountered: