diff --git a/src/Image.php b/src/Image.php index 6e701db..b4a049a 100644 --- a/src/Image.php +++ b/src/Image.php @@ -217,7 +217,7 @@ public static function fromForm(array $file): Image public function form(array $file): Image { if (isset($file) && isset($file["name"]) && $file["name"] != "") { - $this->fromPath($file["tmp_name"]); + $this->path($file["tmp_name"]); } return $this; } @@ -278,7 +278,7 @@ public static function fromBase64(string $base64): Image */ public function base64(string $base64): Image { - return $this->fromData(\base64_decode($base64)); + return $this->data(\base64_decode($base64)); } /** @@ -329,7 +329,7 @@ public function curl(string $url, array $curlOptions = [], bool $failOnError = f return $this->resetFields(); } - return $this->fromData($image); + return $this->data($image); }