Flameshot's --raw flag always emits PNG data to stdout, so renaming the output file cannot change format or quality. Pipe the capture through ImageMagick to convert to JPEG or tune PNG compression.