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

Glide returns images as type=document #313

Open
cvlug opened this issue Mar 3, 2021 · 4 comments
Open

Glide returns images as type=document #313

cvlug opened this issue Mar 3, 2021 · 4 comments
Labels

Comments

@cvlug
Copy link

cvlug commented Mar 3, 2021

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?

@ADmad
Copy link
Collaborator

ADmad commented 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.

@ADmad ADmad added the question label Mar 3, 2021
@cvlug
Copy link
Author

cvlug commented Mar 3, 2021 via email

@ADmad
Copy link
Collaborator

ADmad commented 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
Copy link
Author

cvlug commented Mar 3, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants