Skip to content

Instantly share code, notes, and snippets.

@wpweb101
Created July 16, 2015 09:03
Show Gist options
  • Select an option

  • Save wpweb101/1cde9a648b4660128e67 to your computer and use it in GitHub Desktop.

Select an option

Save wpweb101/1cde9a648b4660128e67 to your computer and use it in GitHub Desktop.
Edd Download Image Watermark - JPEG image quality
<?php
/**
* Function to handle the download image jpeg quality
* Note : Value should be numeric and bettween 0 to 100
*
* @param int $quality
* @return $quality
*/
function edd_img_wtm_jpeg_quality( $quality ) {
$quality = 88;
return $quality;
}
add_filter( 'edd_img_wtm_jpeg_quality', 'edd_img_wtm_jpeg_quality' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment