How to get srcset and thumbs + Image quality not working?

Let’s start with properly formatting the file:

<?php

return [
    'omz13.xmlsitemap.cacheTTL' => 60,
    'omz13.xmlsitemap.includeUnlistedWhenSlugIs' => [],
    'omz13.xmlsitemap.includeUnlistedWhenTemplateIs' => [],
    'omz13.xmlsitemap.excludePageWhenTemplateIs' => ['content_accordion', 'content_collection_inline', 'content_iframe', 'content_imagesheet', 'content_photo'],
    'omz13.xmlsitemap.excludePageWhenSlugIs' => [],
    'omz13.xmlsitemap.excludeChildrenWhenTemplateIs' => [],

    'debug'  => true,

    'markdown' => [
        'extra' => true
    ],

    'hooks' => [
        'page.create:after' => function ($page) {
            $page->changeStatus('listed');
        }
    ],

    'medienbaecker.autofavicon.text' => '',
    'medienbaecker.autofavicon.color' => '#000000',
    'medienbaecker.autofavicon.color_dark' => '#rrrrrr',

    'thumbs' => [
        'driver'    => 'im',
        'quality'   => 30,
        'srcsets'   => [
            'default' => [1, 300, 500, 1000, 2000]
        ],
        'presets' => [
            'default' => ['width' => 2000, 'quality' => 30],
            's' => ['width' => 600, 'quality' => 30],
            'xs' => ['width' => 1, 'height' => 1, 'quality' => 30]
        ]
    ],

    'sylvainjule.colorextractor.average' => false,
    'sylvainjule.colorextractor.fallbackColor' => '#000000',

    'languages' => true,

];

There should never be whitespace before the opending PHP tag