Skip to content

Glide returns images as type=document #313

Open

Description

@cvlug

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?

Activity

  1. ADmad commented on Mar 3, 2021

    @ADmad
    Collaborator

    Did you check the actual response data? It's possible there be some error occurring and image data is not actually returned.

  2. cvlug commented on Mar 3, 2021

    @cvlug
    Author
  3. ADmad commented on Mar 3, 2021

    @ADmad
    Collaborator

    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.

  4. cvlug commented on Mar 3, 2021

    @cvlug
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions