Skip to content

Commit

Permalink
Applying JPEG Quality Settings (if set in $args)
Browse files Browse the repository at this point in the history
  • Loading branch information
rpetersn committed May 15, 2015
1 parent 78138ee commit 4811d23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wpthumb.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4811d23

Please sign in to comment.