In latest version of Discourse, setting the quality of conversion to 100 doesn’t seem to have any effect. PNG images are converted into JPGs anyway. Tried multiple times, ensured settings are saved, tried logging in and out, tried images that were not tried before and so on.