liip_imagine:
    driver: gd

    filter_sets:
        # --- Character icon (grid cards: home, /postacie) ---
        char_icon:
            quality: 85
            filters:
                thumbnail: { size: [256, 256], mode: outbound }

        char_icon_webp:
            format: webp
            quality: 80
            filters:
                thumbnail: { size: [256, 256], mode: outbound }

        # --- Character full (single character page avatar) ---
        char_full:
            quality: 85
            filters:
                thumbnail: { size: [512, 512], mode: outbound }

        char_full_webp:
            format: webp
            quality: 80
            filters:
                thumbnail: { size: [512, 512], mode: outbound }

        # --- Logo (navbar/footer, max 96px height) ---
        logo:
            quality: 85
            filters:
                thumbnail: { size: [null, 96], mode: inset }

        logo_webp:
            format: webp
            quality: 80
            filters:
                thumbnail: { size: [null, 96], mode: inset }

        # --- Hero phone mockups (resize to ~500px wide) ---
        hero_phone:
            quality: 90
            png_compression_level: 9
            filters:
                thumbnail: { size: [500, null], mode: inset }

        hero_phone_webp:
            format: webp
            quality: 85
            filters:
                thumbnail: { size: [500, null], mode: inset }

        # --- Story illustrations (retina-ready, 1600px wide) ---
        story_illustration:
            quality: 92
            filters:
                thumbnail: { size: [1600, null], mode: inset }

        story_illustration_webp:
            format: webp
            quality: 88
            filters:
                thumbnail: { size: [1600, null], mode: inset }

        # --- Badge icon (lista odznak, 160x160 dla retina na kafelku 80x80) ---
        badge_icon:
            quality: 85
            filters:
                thumbnail: { size: [160, 160], mode: inset }

        badge_icon_webp:
            format: webp
            quality: 80
            filters:
                thumbnail: { size: [160, 160], mode: inset }

        # --- Open Graph image ---
        og_image:
            quality: 85
            filters:
                thumbnail: { size: [1200, 630], mode: outbound }

        og_image_webp:
            format: webp
            quality: 80
            filters:
                thumbnail: { size: [1200, 630], mode: outbound }
