I am trying to use progressive JPEG but it looks like WordPress does not respect chosen type that is used for displaying image's content.
I convert JPEG image with this command:
convert bunny.jpg -interlace plane progressive-bunny.jpg
After upload, image displays as a baseline JPEG.
I am aware of that WordPress does some post-processing after upload and probably that is the main reason why images end up as a baseline JPEG but I wonder if there is a way to turn this feature off or make it respects original type?
I tried to disable optimization by adding these two lines to functions.php but it does not work, it only increases the size of uploaded files.
add_filter('jpeg_quality', function($arg) {return 100;});
add_filter('wp_editor_set_quality', function($arg) {return 100;});