public function resizeRatio($width, $height, $useAsMinimum = false)
    {
        return $this->createCloneWithResource(
            function (InterventionImage $resource) use ($width, $height, $useAsMinimum) {
                return $resource->resize(
                    $width,
                    $height,
                    function (Constraint $constraint) use ($useAsMinimum) {
                        $constraint->aspectRatio();
                        if (!$useAsMinimum) {
                            $constraint->upsize();
                        }
                    }
                );
            }
        );
    }