diff --git a/src/Models/Traits/HandlesConversions.php b/src/Models/Traits/HandlesConversions.php index 91e9a85..b47a538 100644 --- a/src/Models/Traits/HandlesConversions.php +++ b/src/Models/Traits/HandlesConversions.php @@ -53,7 +53,7 @@ public function generate(bool $force = false) : void $conversionFile = SpatieImage::useImageDriver(config('image-library.image_driver')) ->loadFile($this->image->getPath()); - if ($this->x || $this->y) { + if (isset($this->x) || isset($this->y)) { $conversionFile ->manualCrop($this->width, $this->height, $this->x, $this->y); } else {