diff --git a/code/ImageEditor.php b/code/ImageEditor.php index 94c40ec1..41bc5fc5 100644 --- a/code/ImageEditor.php +++ b/code/ImageEditor.php @@ -61,7 +61,7 @@ $command = $this->requestParams['command']; $this->checkFileExists($fileName); $fileInfo = pathinfo($fileName); - $gd = new GD($fileName); + $gd = new GD($this->url2File($fileName)); switch($command) { case 'rotate': $angle = $_POST['angle'];