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
If we have an url image name with space not encoded, for es.
$FastImageSize->getImageSize('https://example.com/some random image.jpg');
the function will not work because the file_get_contents do not accept url not encoded.
As a fix, I propose to automatically encode the filename in the getImage function. $filename = urldecode($filename); $filename = dirname($filename) . '/'. rawurlencode(basename($filename)); $this->data = @file_get_contents($filename, null, null, $offset, $length);