diff --git a/inc/Service/Media/GdMediaHandler.php b/inc/Service/Media/GdMediaHandler.php index b96a63c9..d17f2f70 100644 --- a/inc/Service/Media/GdMediaHandler.php +++ b/inc/Service/Media/GdMediaHandler.php @@ -143,6 +143,8 @@ class GdMediaHandler implements MediaHandler { public function __construct(bool $strip_redraw, array $exif_readers, int $max_width, int $max_height) { $this->strip_redraw = $strip_redraw; $this->exif_readers = $exif_readers; + $this->image_max_width = $max_width; + $this->image_max_height = $max_height; } public function supportsMime(string $mime): bool {