title: getimagesize() function does not working for some images
body: <p><code>getimagesize()</code> function returns <code>FALSE</code> for some images.</p>
  
  <p><strong>Example:</strong> 
  <a href="https://i.stack.imgur.com/rkfj8.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rkfj8.jpg" alt="enter image description here"></a></p>
  
  <pre><code>$path1 = getcwd().'/images/communities/29/eagle-ridge-26.jpg';
  $vals_arr1 = getimagesize($path1);
  
  $path2 = 'http://homematrix.oskyserver.com/images/communities/29/
                                                 eagle-ridge-26.jpg';
  $vals_arr2 = getimagesize($path2);
  </code></pre>
  
  <p>In both cases, it returns <code>FALSE</code>, I have searched, but not found a good solution yet.</p>