diff --git a/system/src/Grav/Common/Media/Traits/ImageMediaTrait.php b/system/src/Grav/Common/Media/Traits/ImageMediaTrait.php index 42f040b0a..66c4ae996 100644 --- a/system/src/Grav/Common/Media/Traits/ImageMediaTrait.php +++ b/system/src/Grav/Common/Media/Traits/ImageMediaTrait.php @@ -459,7 +459,7 @@ trait ImageMediaTrait public function width($value = 'auto') { if (!$value || $value === 'auto') { - $this->attributes['width'] = $this->get('width'); + $this->attributes['width'] = null; } else { $this->attributes['width'] = $value; } @@ -483,7 +483,7 @@ trait ImageMediaTrait public function height($value = 'auto') { if (!$value || $value === 'auto') { - $this->attributes['height'] = $this->get('height'); + $this->attributes['height'] = null; } else { $this->attributes['height'] = $value; }