Translations:Manual:$wgJpegQuality/5/en

The default is 80, which matches the quality of JPEG thumbnails previously generated by ImageMagick.