Open cgriem opened 9 years ago
I have the same issue. If you use liip/imagine-bundle 0.20.0 it works. But the latest version of liip/imagine-bundle filter manager requires a Liip BinaryInterface
instance.
So basically the filter won't work in this situation. I made some changes in
Thrace\MediaBundle\Controller\ImageController
in my local copy.
This works - however it doesn't resize the image:
$name = $this->getRequest()->get('name');
$filter = $this->getRequest()->get('filter');
$imageManager = $this->container->get('thrace_media.imagemanager');
$filterManager = $this->container->get('liip_imagine.filter.manager');
try{
$image = $imageManager->loadTemporaryImageByName($name);
} catch (FileNotFound $e){
throw new NotFoundHttpException();
}
//$content = $filterManager->applyFilter($image, $filter);
$response = new Response($image);
$response->headers->set('Accept-Ranges', 'bytes');
$response->headers->set('Content-Length', mb_strlen($image));
$response->headers->set('Content-Type', $this->getMimeType($image));
$response->expire();
return $response;
I implemented a multi image upload in my form and entity as described in documentation, uploaded images work fine in frontend and config should be correct but still the thumbnails aren't sown on the uploader, all I get is the broken image symbol and when I call the thumbnail url I get the following error:
Here is the MultiImage entity:
and here the related parts of my entity that should hold the images:
my implementation in the template:
also the code used in the form type:
the parameters for the identifier:
my config for the bundle:
and lastly the routing:
Can anyone help me fixing this? I tried about everything I could come up with but with no results