mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-05 23:57:30 +02:00
Enable configuration fix for solving Windows 2 WSL2 issue with is_readable/is_writable #189
This commit is contained in:
@@ -964,8 +964,11 @@ class CImage
|
||||
{
|
||||
$file = $file ? $file : $this->pathToImage;
|
||||
|
||||
is_readable($file)
|
||||
or $this->raiseError('Image file does not exist.');
|
||||
// Special case to solve Windows 2 WSL integration
|
||||
if (!defined('WINDOWS2WSL')) {
|
||||
is_readable($file)
|
||||
or $this->raiseError('Image file does not exist.');
|
||||
}
|
||||
|
||||
$info = list($this->width, $this->height, $this->fileType) = getimagesize($file);
|
||||
if (empty($info)) {
|
||||
|
Reference in New Issue
Block a user