From 55cc8761419324d0472e632b75b1dcc0c0222821 Mon Sep 17 00:00:00 2001 From: Mike Schroder Date: Mon, 22 Feb 2016 22:19:26 +0000 Subject: [PATCH] Media: Reduce default image compression quality to '82'. Changes default image compression quality from '90' to '82'. This reduces generated image file sizes by ~25% while keeping DSSIM < 0.0023, with both Imagick and GD. Props @joemcgill, @dnewton. See #33642. Built from https://develop.svn.wordpress.org/trunk@36615 git-svn-id: http://core.svn.wordpress.org/trunk@36582 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-image-editor.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-image-editor.php b/wp-includes/class-wp-image-editor.php index adaa884c98..5b6f4ac9a0 100644 --- a/wp-includes/class-wp-image-editor.php +++ b/wp-includes/class-wp-image-editor.php @@ -17,7 +17,7 @@ abstract class WP_Image_Editor { protected $mime_type = null; protected $default_mime_type = 'image/jpeg'; protected $quality = false; - protected $default_quality = 90; + protected $default_quality = 82; /** * Each instance handles a single file. diff --git a/wp-includes/version.php b/wp-includes/version.php index a13cd01593..611b46b4ae 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36614'; +$wp_version = '4.5-alpha-36615'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.