• Resolved swinggraphics

    (@swinggraphics)


    I see that the plugin sets WP’s JPEG quality to 85%. The default is 90%, so this plugin is reducing quality even more than the WP default before running its own optimizations. Please make this optional, at least for paid users! We should be able to avoid WP’s compression altogether, as if we were uploading to tinypng.com directly.

    For anyone else who wants to override this with their own plugin or functions.php file:

    function tp_jpeg_quality() {
    	if( class_exists( 'Tiny_Plugin' ) )
    		return 100;
    }
    add_filter( 'jpeg_quality', 'tp_jpeg_quality', 20 );
    add_filter( 'wp_editor_set_quality', 'tp_jpeg_quality', 20 );
    • This topic was modified 6 years, 1 month ago by swinggraphics. Reason: Correction for lossless vs lossy aspect of TinyJPG service
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author TinyPNG

    (@tinypng)

    Hi @swinggraphics,

    The plugin sets the quality to 85, which is slightly higher than the WordPress default quality of 82, not 90 like you say.

    WordPress did use to have a default quality of 90, but this was only up to WordPress 4.5.

    Your solution does make sense, to set the default up to 90 or higher. This will then make even better use of the compression offered by the plugin and add a slight image quality improvement.

    Thread Starter swinggraphics

    (@swinggraphics)

    Thanks for the timeline on the core quality setting. I haven’t looked at it in a couple years. I’m glad you agree that quality should be set higher, and look forward to seeing that change in an upcoming release. Maybe make it 100% if the file size is under some threshold like 5 or 10MB? And completely optional for paying customers?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘JPEG quality’ is closed to new replies.