diff --git a/src/Formats/Format.php b/src/Formats/Format.php index deebd70..654f192 100644 --- a/src/Formats/Format.php +++ b/src/Formats/Format.php @@ -86,12 +86,16 @@ public function argument(string $argument): mixed public function width(): ?string { - return $this->argument('fit')[1] ?? $this->argument('width'); + return $this->argument('fit')[1] + ?? $this->argument('width')[0] + ?? null; } public function height(): ?string { - return $this->argument('fit')[2] ?? $this->argument('height'); + return $this->argument('fit')[2] + ?? $this->argument('height')[0] + ?? null; } public function aspectRatio(): float