private static function setQuality(int $quality = 90): void
    {
        $quality = $quality < 10 || $quality > 100 ? 90 : $quality;
        static::$quality = $quality;
        static::$qualityPNG = (int)\round((100 - $quality) / 10, 0);
    }