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
I followed the steps at https://glide.thephpleague.com/1.0/config/integrations/laravel/, for a Laravel project.
When i request an image from Glide with /img/test.jpg?w=300&h=400, Chrome webmaster tool shows Glide returns the image as type 'document'.
A black screen is show with a white square block of 1 cm inside. No Image.
Inside folder .cache a folder 'test.jpg' is made by Glyde, so that seems to working right.
What needs to be done to have Glide display images right?
It could be that the docs example is outdated for the Laravel version you are using. I am not a Laravel user so can't confirm whether that example needs to be updated. Personally I would use a middleware instead of a controller to return the response.
Activity
ADmad commentedon Mar 3, 2021
Did you check the actual response data? It's possible there be some error occurring and image data is not actually returned.
cvlug commentedon Mar 3, 2021
ADmad commentedon Mar 3, 2021
It could be that the docs example is outdated for the Laravel version you are using. I am not a Laravel user so can't confirm whether that example needs to be updated. Personally I would use a middleware instead of a controller to return the response.
cvlug commentedon Mar 3, 2021