diff --git a/src/PHPThumb/GD.php b/src/PHPThumb/GD.php index 350bf19..ff01b85 100644 --- a/src/PHPThumb/GD.php +++ b/src/PHPThumb/GD.php @@ -776,8 +776,8 @@ public function rotateImageNDegrees($degrees) $this->workingImage = imagerotate($this->oldImage, $degrees, 0); - $newWidth = $this->currentDimensions['height']; - $newHeight = $this->currentDimensions['width']; + $newWidth = imagesx($this->workingImage); + $newHeight = imagesy($this->workingImage); $this->oldImage = $this->workingImage; $this->currentDimensions['width'] = $newWidth; $this->currentDimensions['height'] = $newHeight;