private function resizeByHeight($originalWidth, $originalHeight, $targetHeight)
    {
        $targetWidth = ($targetHeight * $originalWidth) / $originalHeight;

        return $this->verifySize($originalWidth, $originalHeight, $targetWidth, $targetHeight);
    }