resource->mimeType()); if ($this->width !== null && $this->width < 1) { throw new InvalidArgumentException('Preview result width must be positive'); } if ($this->height !== null && $this->height < 1) { throw new InvalidArgumentException('Preview result height must be positive'); } } }