title: Glide library | image not loading up
body: <p>im trying to enable this library for my localhost environment.</p>
  
  <blockquote>
    <p><a href="http://glide.thephpleague.com/1.0/config/integrations/laravel/" rel="nofollow noreferrer">http://glide.thephpleague.com/1.0/config/integrations/laravel/</a></p>
  </blockquote>
  
  <p>Current Laravel Version <code>5.5</code></p>
  
  <p><code>gd2</code> is enabled in wamp extensions.</p>
  
  <p>I cant seem to find where the problem is.</p>
  
  <p>Path is ok, image exists on it.</p>
  
  <p>See following code for server config.</p>
  
  <pre><code>$server = ServerFactory::create([
              'response' =&gt; new LaravelResponseFactory(app('request')),
              'source' =&gt; $source,
              //'cache' =&gt; new Filesystem(new Adapter('../storage/app/cache/')),
              'cache' =&gt; $cache,
              'cache_path_prefix' =&gt; '.cache',
              'base_url' =&gt; 'transform-img',
          ]);
  </code></pre>
  
  <p>now i use this</p>
  
  <pre><code>return $server-&gt;getImageResponse($path, request()-&gt;all());
  </code></pre>
  
  <p>it does not give any error.</p>
  
  <p>when i <code>dd()</code> this, i get this response.</p>
  
  <pre><code>StreamedResponse {#1151 ▼
    #callback: Closure {#1177 ▶}
    #streamed: false
    -headersSent: false
    +headers: ResponseHeaderBag {#1176 ▶}
    #content: null
    #version: "1.0"
    #statusCode: 200
    #statusText: "OK"
    #charset: null
  }
  </code></pre>
  
  <p>Callback Closure:</p>
  
  <pre><code>#callback: Closure {#1252 ▼
      class: "League\Glide\Responses\SymfonyResponseFactory"
      this: LaravelResponseFactory {#1231 …}
      use: {▼
        $stream: stream resource @543 ▼
          timed_out: false
          blocked: true
          eof: false
          wrapper_type: "plainfile"
          stream_type: "STDIO"
          mode: "rb"
          unread_bytes: 0
          seekable: true
          uri: "D:\wamp\www\Bankrolla\storage\app/public\.cache/img/logo_no_text.png/32c8e67d979eab40a7ef6d1854f1f7cc"
          options: []
        }
      }
      file: "D:\wamp\www\Bankrolla\vendor\league\glide-symfony\src\Responses\SymfonyResponseFactory.php"
      line: "48 to 54"
    }
  </code></pre>
  
  <p>as statusCode shows <code>200</code> and there is no error for file not found, still it does not load any image but shows a placeholder on browser when i navigate.</p>
  
  <p>What can be the issue. if i try to replace image name with any other random string i get error for image not found. so this means it does find the image. thou it fails to render the image.</p>
  
  <p>I have googled, searched on their github comments, could not find any problem similar as mine.</p>
  
  <p>I only get a blank page/image if i load it directly.</p>
  
  <p><a href="https://i.stack.imgur.com/ihKLd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ihKLd.png" alt="enter image description here"></a></p>
  
  <p>also i looked in to the cache directory, it includes the files and those files dimensions are resized. so i am not sure where it goes wrong even when it generates the cache files.</p>
  
  <p><a href="https://i.stack.imgur.com/2eK5F.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2eK5F.png" alt="enter image description here"></a></p>
  
  <p>may be i am missing any point here, if anyone can point me to the right direction would be very helpful.</p>
  
  <hr>
  
  <p><strong>Update:</strong></p>
  
  <p>Value of <code>$source</code> variable:</p>
  
  <pre><code>Filesystem {#1225 ▼
    #adapter: Local {#1226 ▼
      #pathSeparator: "\"
      #permissionMap: array:2 [▼
        "file" =&gt; array:2 [▼
          "public" =&gt; 420
          "private" =&gt; 384
        ]
        "dir" =&gt; array:2 [▼
          "public" =&gt; 493
          "private" =&gt; 448
        ]
      ]
      #writeFlags: 2
      -linkHandling: 2
      #pathPrefix: "D:\wamp\www\Bankrolla\storage\app/public\"
    }
    #plugins: []
    #config: Config {#1229 ▼
      #settings: []
      #fallback: null
    }
  }
  </code></pre>
  
  <p>Storage Directory in my public directory(its a symbolic link of original storage)</p>
  
  <p><a href="https://i.stack.imgur.com/R4fhs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/R4fhs.png" alt="enter image description here"></a></p>
  
  <p>Storage Directory of Laravel</p>
  
  <p><a href="https://i.stack.imgur.com/lxbS6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lxbS6.png" alt="enter image description here"></a></p>
  
  <p>The URL i am calling this from.</p>
  
  <p><code>{localhostDomainHere}/image/img/logo_no_text.png?w=100&amp;h=100&amp;fit=crop-center</code></p>