From 4811d23b826b58663aec27750020ac75cd63b4d5 Mon Sep 17 00:00:00 2001 From: Ross Peterson Date: Thu, 14 May 2015 19:13:54 -0600 Subject: [PATCH] Applying JPEG Quality Settings (if set in $args) --- wpthumb.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wpthumb.php b/wpthumb.php index 4723d74..b7942d8 100755 --- a/wpthumb.php +++ b/wpthumb.php @@ -427,6 +427,9 @@ public function generateCacheFile() { // Save the converted image $editor->save( $new_filepath, 'image/png' ); + // Apply JPEG quality settings args + $editor->set_quality( $this->args['jpeg_quality'] ); + // Pass the new file back through the function so they are resized return new WP_Thumb( $new_filepath, array_merge( $this->args, array( 'output_file' => $new_filepath,