@@ -9,6 +9,10 @@
 
 class AutoEncoder implements EncoderInterface
 {
+    public function __construct(public int $quality = 75)
+    {
+    }
+
     /**
      * {@inheritdoc}
      *
@@ -33,13 +37,13 @@ public function encode(ImageInterface $image): EncodedImageInterface
     protected function encoderByMediaType(string $type): EncoderInterface
     {
         return match ($type) {
-            'image/webp' => new WebpEncoder(),
-            'image/avif' => new AvifEncoder(),
-            'image/jpeg' => new JpegEncoder(),
+            'image/webp' => new WebpEncoder($this->quality),
+            'image/avif' => new AvifEncoder($this->quality),
+            'image/jpeg' => new JpegEncoder($this->quality),
             'image/bmp' => new BmpEncoder(),
             'image/gif' => new GifEncoder(),
             'image/png' => new PngEncoder(),
-            'image/tiff' => new TiffEncoder(),
+            'image/tiff' => new TiffEncoder($this->quality),
             default => throw new EncoderException('No encoder found for media type (' . $type . ').'),
         };
     }